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

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: Addressed most CR feedback from mkwst@, alexmos@ and dcheng@. 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..dcbb202f23dcd11d83816b1d069a2a5987b24470 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -1039,4 +1039,17 @@ LinkResource* FrameLoaderClientImpl::createServiceWorkerLinkResource(HTMLLinkEle
return ServiceWorkerLinkResource::create(owner);
}
+void FrameLoaderClientImpl::didAddContentSecurityPolicy(
+ const String& headerValue,
+ ContentSecurityPolicyHeaderType type,
+ ContentSecurityPolicyHeaderSource source)
+{
+ if (m_webFrame->client()) {
+ m_webFrame->client()->didAddContentSecurityPolicy(
+ headerValue,
+ static_cast<WebContentSecurityPolicyType>(type),
+ static_cast<WebContentSecurityPolicySource>(source));
+ }
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698