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

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

Issue 1957783002: Replicate Content-Security-Policy into remote frame proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index ecfe5353f44b0de925d873ef2c2eb37c696d3816..ff48ed95b27e3ff5be8be5224476ab7c4fa340c1 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -1039,4 +1039,14 @@ LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle
return ServiceWorkerLinkResource::create(owner);
}
+void FrameLoaderClientImpl::didAddContentSecurityPolicy(
+ const String& headerValue,
+ ContentSecurityPolicyHeaderType type,
+ ContentSecurityPolicyHeaderSource source) {
dcheng 2016/05/11 20:15:07 I'm surprised check-webkit-style didn't complain,
Łukasz Anforowicz 2016/05/11 23:14:48 Done.
+ m_webFrame->client()->didAddContentSecurityPolicy(
alexmos 2016/05/11 19:46:41 Do you need to check for !m_webFrame->client(), si
Łukasz Anforowicz 2016/05/11 23:14:48 Done.
+ headerValue,
+ static_cast<WebContentSecurityPolicyType>(type),
+ static_cast<WebContentSecurityPolicySource>(source));
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698