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

Unified Diff: content/renderer/content_security_policy_util.cc

Issue 2756913002: Revert of PlzNavigate: Enforce 'frame-src' CSP on the browser. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « content/renderer/content_security_policy_util.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/content_security_policy_util.cc
diff --git a/content/renderer/content_security_policy_util.cc b/content/renderer/content_security_policy_util.cc
index 25a09d3cefb324e0602716c57cb92f97de747f73..7ba2900b3a88fcd8b6083e011c747af5a45b57f5 100644
--- a/content/renderer/content_security_policy_util.cc
+++ b/content/renderer/content_security_policy_util.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "content/renderer/content_security_policy_util.h"
+#include "third_party/WebKit/public/platform/WebContentSecurityPolicyStruct.h"
namespace content {
@@ -53,25 +54,4 @@
policy.header.utf8()); // header
}
-blink::WebContentSecurityPolicyViolation BuildWebContentSecurityPolicyViolation(
- const content::CSPViolationParams& violation_params) {
- blink::WebContentSecurityPolicyViolation violation;
- violation.directive = blink::WebString::fromASCII(violation_params.directive);
- violation.effectiveDirective =
- blink::WebString::fromASCII(violation_params.effective_directive);
- violation.consoleMessage =
- blink::WebString::fromASCII(violation_params.console_message);
- violation.blockedUrl = violation_params.blocked_url;
- violation.reportEndpoints = blink::WebVector<blink::WebString>(
- violation_params.report_endpoints.size());
- for (size_t i = 0; i < violation_params.report_endpoints.size(); ++i) {
- violation.reportEndpoints[i] =
- blink::WebString::fromASCII(violation_params.report_endpoints[i]);
- }
- violation.header = blink::WebString::fromASCII(violation_params.header);
- violation.disposition = violation_params.disposition;
- violation.afterRedirect = violation_params.after_redirect;
- return violation;
-}
-
} // namespace content
« no previous file with comments | « content/renderer/content_security_policy_util.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698