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

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

Issue 2797813002: Replicate feature policy container policies. (Closed)
Patch Set: Addressing 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index 826ea3e4e53f9cc760791d1173080db2b35d737f..9dfb4fb51943f0750822efedb65ecf46311b0163 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -31,13 +31,14 @@
#ifndef WebFrame_h
#define WebFrame_h
+#include <memory>
#include "WebIconURL.h"
#include "WebNode.h"
#include "public/platform/WebCanvas.h"
+#include "public/platform/WebFeaturePolicy.h"
#include "public/platform/WebInsecureRequestPolicy.h"
#include "public/web/WebFrameLoadType.h"
#include "public/web/WebTreeScopeType.h"
-#include <memory>
namespace v8 {
class Context;
@@ -141,11 +142,13 @@ class WebFrame {
// The security origin of this frame.
BLINK_EXPORT WebSecurityOrigin GetSecurityOrigin() const;
- // Updates the sandbox flags in the frame's FrameOwner. This is used when
- // this frame's parent is in another process and it dynamically updates
- // this frame's sandbox flags. The flags won't take effect until the next
- // navigation.
- BLINK_EXPORT void SetFrameOwnerSandboxFlags(WebSandboxFlags);
+ // Updates the snapshotted policy attributes (sandbox flags and feature policy
+ // container policy) in the frame's FrameOwner. This is used when this frame's
+ // parent is in another process and it dynamically updates this frame's
+ // sandbox flags or container policy. The new policy won't take effect until
+ // the next navigation.
+ BLINK_EXPORT void SetFrameOwnerPolicy(WebSandboxFlags,
+ const blink::WebParsedFeaturePolicy&);
// The frame's insecure request policy.
BLINK_EXPORT WebInsecureRequestPolicy GetInsecureRequestPolicy() const;
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698