Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: content/common/frame_replication_state.h

Issue 2557063002: Upgrade Insecure Requests: bugfixes, tests, and support for OOPIF.
Patch Set: Addressed comments (@nasko #2). Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/frame_replication_state.h
diff --git a/content/common/frame_replication_state.h b/content/common/frame_replication_state.h
index 6fb755f758e540ffcaff2719bc5a1b759611bb70..ce91725a0f2d2817122a2351c074ec45b2ae99e0 100644
--- a/content/common/frame_replication_state.h
+++ b/content/common/frame_replication_state.h
@@ -39,12 +39,14 @@ using ParsedFeaturePolicy = std::vector<FeaturePolicyParsedWhitelist>;
// RenderFrame and any of its associated RenderFrameProxies.
struct CONTENT_EXPORT FrameReplicationState {
FrameReplicationState();
- FrameReplicationState(blink::WebTreeScopeType scope,
- const std::string& name,
- const std::string& unique_name,
- blink::WebSandboxFlags sandbox_flags,
- blink::WebInsecureRequestPolicy insecure_request_policy,
- bool has_potentially_trustworthy_unique_origin);
+ FrameReplicationState(
+ blink::WebTreeScopeType scope,
+ const std::string& name,
+ const std::string& unique_name,
+ blink::WebSandboxFlags sandbox_flags,
+ blink::WebInsecureRequestPolicy insecure_request_policy,
+ const std::vector<uint32_t>& insecure_navigations_set,
+ bool has_potentially_trustworthy_unique_origin);
FrameReplicationState(const FrameReplicationState& other);
~FrameReplicationState();
@@ -120,6 +122,11 @@ struct CONTENT_EXPORT FrameReplicationState {
// different processes.
blink::WebInsecureRequestPolicy insecure_request_policy;
+ // The upgrade insecure navigations set that a frame's current document is
+ // enforcing. Updates are immediately sent to all frame proxies when frames
+ // live in different processes.
+ std::vector<uint32_t> insecure_navigations_set;
+
// True if a frame's origin is unique and should be considered potentially
// trustworthy.
bool has_potentially_trustworthy_unique_origin;
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/frame_replication_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698