mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibWeb: Move HistoryHandlingBehavior enum to its own header
This avoids a header cycle in a subsequent patch.
This commit is contained in:
parent
03375a3dc9
commit
5a500827b8
2 changed files with 20 additions and 8 deletions
19
Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h
Normal file
19
Userland/Libraries/LibWeb/HTML/HistoryHandlingBehavior.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#history-handling-behavior
|
||||
enum class HistoryHandlingBehavior {
|
||||
Default,
|
||||
EntryUpdate,
|
||||
Reload,
|
||||
Replace,
|
||||
};
|
||||
|
||||
}
|
|
@ -10,20 +10,13 @@
|
|||
#include <LibWeb/Fetch/Infrastructure/HTTP/Responses.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/CrossOriginOpenerPolicy.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/CrossOriginOpenerPolicyEnforcementResult.h>
|
||||
#include <LibWeb/HTML/HistoryHandlingBehavior.h>
|
||||
#include <LibWeb/HTML/Origin.h>
|
||||
#include <LibWeb/HTML/PolicyContainers.h>
|
||||
#include <LibWeb/HTML/SandboxingFlagSet.h>
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#history-handling-behavior
|
||||
enum class HistoryHandlingBehavior {
|
||||
Default,
|
||||
EntryUpdate,
|
||||
Reload,
|
||||
Replace,
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/browsing-the-web.html#navigation-params
|
||||
struct NavigationParams {
|
||||
// a navigation id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue