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

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

Issue 2651883008: Make content::FeaturePolicy implement WebFeaturePolicy, and use it in blink code (Closed)
Patch Set: Cleanup Created 3 years, 10 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/WebRemoteFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
index 3cb385991a22641af04526cd8fc0445b91c6569b..28687ca3b05d8a82a4351b3028475c22fc8d6261 100644
--- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
@@ -4,6 +4,7 @@
#include "web/WebRemoteFrameImpl.h"
+#include <v8/include/v8.h>
#include "core/dom/Fullscreen.h"
#include "core/dom/RemoteSecurityContext.h"
#include "core/dom/SecurityContext.h"
@@ -14,6 +15,7 @@
#include "core/layout/LayoutObject.h"
#include "core/page/Page.h"
#include "platform/heap/Handle.h"
+#include "public/platform/WebFeaturePolicy.h"
#include "public/platform/WebFloatRect.h"
#include "public/platform/WebRect.h"
#include "public/web/WebDocument.h"
@@ -24,7 +26,6 @@
#include "web/RemoteFrameOwner.h"
#include "web/WebLocalFrameImpl.h"
#include "web/WebViewImpl.h"
-#include <v8/include/v8.h>
namespace blink {
@@ -432,7 +433,7 @@ void WebRemoteFrameImpl::setReplicatedName(const WebString& name,
void WebRemoteFrameImpl::setReplicatedFeaturePolicyHeader(
const WebParsedFeaturePolicyHeader& parsedHeader) const {
if (RuntimeEnabledFeatures::featurePolicyEnabled()) {
- FeaturePolicy* parentFeaturePolicy = nullptr;
+ WebFeaturePolicy* parentFeaturePolicy = nullptr;
if (parent()) {
Frame* parentFrame = frame()->client()->parent();
parentFeaturePolicy = parentFrame->securityContext()->getFeaturePolicy();

Powered by Google App Engine
This is Rietveld 408576698