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

Unified Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Cleanup, reponding to review comments Created 3 years, 8 months 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
Index: third_party/WebKit/public/web/WebFrameClient.h
diff --git a/third_party/WebKit/public/web/WebFrameClient.h b/third_party/WebKit/public/web/WebFrameClient.h
index 0fd5e49fd26d68b8ef62a66d36ae0a2beb9b5840..096156325315c2f040951b70dbb84f063c5bbf00 100644
--- a/third_party/WebKit/public/web/WebFrameClient.h
+++ b/third_party/WebKit/public/web/WebFrameClient.h
@@ -179,12 +179,14 @@ class BLINK_EXPORT WebFrameClient {
// to prevent the new child frame from being attached. Otherwise, embedders
// should create a new WebLocalFrame, insert it into the frame tree, and
// return the created frame.
- virtual WebLocalFrame* createChildFrame(WebLocalFrame* parent,
- WebTreeScopeType,
- const WebString& name,
- const WebString& fallbackName,
- WebSandboxFlags sandboxFlags,
- const WebFrameOwnerProperties&) {
+ virtual WebLocalFrame* createChildFrame(
+ WebLocalFrame* parent,
+ WebTreeScopeType,
+ const WebString& name,
+ const WebString& fallbackName,
+ WebSandboxFlags sandboxFlags,
+ const WebParsedFeaturePolicy& containerPolicy,
+ const WebFrameOwnerProperties&) {
return nullptr;
}
@@ -222,9 +224,12 @@ class BLINK_EXPORT WebFrameClient {
virtual void didUpdateToUniqueOrigin(
bool isPotentiallyTrustworthyUniqueOrigin) {}
- // The sandbox flags have changed for a child frame of this frame.
- virtual void didChangeSandboxFlags(WebFrame* childFrame,
- WebSandboxFlags flags) {}
+ // The sandbox flags or container policy have changed for a child frame of
+ // this frame.
+ virtual void didChangeFramePolicy(
+ WebFrame* childFrame,
+ WebSandboxFlags flags,
+ const WebParsedFeaturePolicy& containerPolicy) {}
// Called when a Feature-Policy HTTP header is encountered while loading the
// frame's document.

Powered by Google App Engine
This is Rietveld 408576698