diff options
Diffstat (limited to 'chromium/net/base/network_isolation_key.h')
-rw-r--r-- | chromium/net/base/network_isolation_key.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/net/base/network_isolation_key.h b/chromium/net/base/network_isolation_key.h index be4f992f2f7..049f4a3cf54 100644 --- a/chromium/net/base/network_isolation_key.h +++ b/chromium/net/base/network_isolation_key.h @@ -1,4 +1,4 @@ -// Copyright 2019 The Chromium Authors. All rights reserved. +// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -118,8 +118,16 @@ class NET_EXPORT NetworkIsolationKey { const absl::optional<SchemefulSite>& GetTopFrameSite() const { return top_frame_site_; } + const absl::optional<SchemefulSite>& GetFrameSite() const; + // Do not use outside of testing. Returns the `frame_site_` if + // `kForceIsolationInfoFrameOriginToTopLevelFrame` is disabled. Else it + // returns nullopt. + const absl::optional<SchemefulSite>& GetFrameSiteForTesting() const { + return frame_site_; + } + // Getter for the nonce. const absl::optional<base::UnguessableToken>& GetNonce() const { return nonce_; |