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

Unified Diff: content/renderer/render_frame_impl.cc

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: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 8b82079aa7bc60fc6c74c3f5b813b6145973f607..0c280d4d973c7e0e046d8bbffbcd6e1f75d013f1 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -50,6 +50,7 @@
#include "content/child/weburlresponse_extradata_impl.h"
#include "content/common/accessibility_messages.h"
#include "content/common/clipboard_messages.h"
+#include "content/common/content_security_policy_header.h"
#include "content/common/frame_messages.h"
#include "content/common/frame_replication_state.h"
#include "content/common/gpu/client/context_provider_command_buffer.h"
@@ -6014,6 +6015,17 @@ blink::ServiceRegistry* RenderFrameImpl::serviceRegistry() {
return &blink_service_registry_;
}
+void RenderFrameImpl::didAddContentSecurityPolicy(
+ const blink::WebString& header_value,
+ blink::WebContentSecurityPolicyType type,
+ blink::WebContentSecurityPolicySource source) {
+ ContentSecurityPolicyHeader header;
+ header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value));
+ header.type = type;
+ header.source = source;
+ Send(new FrameHostMsg_DidAddContentSecurityPolicy(routing_id_, header));
+}
+
blink::WebPlugin* RenderFrameImpl::GetWebPluginForFind() {
if (!is_main_frame_)
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698