LibWeb: Move HistoryHandlingBehavior enum to its own header

This avoids a header cycle in a subsequent patch.
This commit is contained in:
Andreas Kling 2022-09-19 16:28:11 +02:00
parent 03375a3dc9
commit 5a500827b8
Notes: sideshowbarker 2024-07-17 06:50:05 +09:00
2 changed files with 20 additions and 8 deletions

View 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,
};
}

View File

@ -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