blob: df4eb1694eb524545ea9f8b30a4567d7993c4ef0 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_RENDERER_HOST_COOP_SWAP_RESULT_H_
#define CONTENT_BROWSER_RENDERER_HOST_COOP_SWAP_RESULT_H_
namespace content {
// This enum indicates what the comparison of Cross-Origin-Opener-Policy headers
// has yielded.
enum class CoopSwapResult {
// Indicates that no BrowsingContext group swap is required, based on COOP
// values.
kNoSwap,
// Indicates that a BrowsingContext group swap is required, but that we should
// use a BrowsingContext group that is "related", preserving restricted
// openers.
kSwapRelated,
// Indicates that a BrowsingContext group swap is required, and that should
// sever all links between the two BrowsingContext groups, opener, names, etc.
kSwap
};
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_COOP_SWAP_RESULT_H_