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

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

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Add the TODO and bug ids that was forgotten. 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/FrameLoaderClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
index 3ccc62e5235c08ee993f3ccbce31202f9a91939a..7dac8076e47fcb52e1491eda7d1ce06e64c71309 100644
--- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
+++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
@@ -879,11 +879,12 @@ void FrameLoaderClientImpl::didSetFeaturePolicyHeader(
void FrameLoaderClientImpl::didAddContentSecurityPolicy(
const String& headerValue,
ContentSecurityPolicyHeaderType type,
- ContentSecurityPolicyHeaderSource source) {
+ ContentSecurityPolicyHeaderSource source,
+ const std::vector<WebContentSecurityPolicyPolicy>& policies) {
if (m_webFrame->client()) {
m_webFrame->client()->didAddContentSecurityPolicy(
headerValue, static_cast<WebContentSecurityPolicyType>(type),
- static_cast<WebContentSecurityPolicySource>(source));
+ static_cast<WebContentSecurityPolicySource>(source), policies);
}
}

Powered by Google App Engine
This is Rietveld 408576698