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

Unified Diff: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp

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
Index: third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
index 6296f9adfdd5e1f6913f49bbacbb40dfe8937dc3..5a0e67e970a571510f8289304b43be8f87ba5772 100644
--- a/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
+++ b/third_party/WebKit/Source/web/LocalFrameClientImpl.cpp
@@ -71,6 +71,7 @@
#include "platform/UserGestureIndicator.h"
#include "platform/exported/WrappedResourceRequest.h"
#include "platform/exported/WrappedResourceResponse.h"
+#include "platform/feature_policy/FeaturePolicy.h"
#include "platform/network/HTTPParsers.h"
#include "platform/network/mime/MIMETypeRegistry.h"
#include "platform/plugins/PluginData.h"
@@ -844,12 +845,15 @@ void LocalFrameClientImpl::DidUpdateToUniqueOrigin() {
web_frame_->GetSecurityOrigin().IsPotentiallyTrustworthy());
}
-void LocalFrameClientImpl::DidChangeSandboxFlags(Frame* child_frame,
- SandboxFlags flags) {
+void LocalFrameClientImpl::DidChangeFramePolicy(
+ Frame* child_frame,
+ SandboxFlags flags,
+ const WebParsedFeaturePolicy& container_policy) {
if (!web_frame_->Client())
return;
- web_frame_->Client()->DidChangeSandboxFlags(
- WebFrame::FromFrame(child_frame), static_cast<WebSandboxFlags>(flags));
+ web_frame_->Client()->DidChangeFramePolicy(
+ WebFrame::FromFrame(child_frame), static_cast<WebSandboxFlags>(flags),
+ container_policy);
}
void LocalFrameClientImpl::DidSetFeaturePolicyHeader(
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.h ('k') | third_party/WebKit/Source/web/RemoteFrameOwner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698