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

Side by Side Diff: content/renderer/render_frame_proxy.cc

Issue 2612793002: Implement ContentSecurityPolicy on the browser-side. (Closed)
Patch Set: Rename SchemeShouldBypass => SchemeShouldBypassCSP. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_frame_proxy.h" 5 #include "content/renderer/render_frame_proxy.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "content/child/feature_policy/feature_policy_platform.h" 13 #include "content/child/feature_policy/feature_policy_platform.h"
14 #include "content/child/web_url_request_util.h" 14 #include "content/child/web_url_request_util.h"
15 #include "content/child/webmessageportchannel_impl.h" 15 #include "content/child/webmessageportchannel_impl.h"
16 #include "content/common/content_security_policy_header.h"
17 #include "content/common/content_switches_internal.h" 16 #include "content/common/content_switches_internal.h"
18 #include "content/common/frame_messages.h" 17 #include "content/common/frame_messages.h"
19 #include "content/common/frame_owner_properties.h" 18 #include "content/common/frame_owner_properties.h"
20 #include "content/common/frame_replication_state.h" 19 #include "content/common/frame_replication_state.h"
21 #include "content/common/input_messages.h" 20 #include "content/common/input_messages.h"
22 #include "content/common/page_messages.h" 21 #include "content/common/page_messages.h"
23 #include "content/common/site_isolation_policy.h" 22 #include "content/common/site_isolation_policy.h"
24 #include "content/common/swapped_out_messages.h" 23 #include "content/common/swapped_out_messages.h"
25 #include "content/common/view_messages.h" 24 #include "content/common/view_messages.h"
26 #include "content/renderer/child_frame_compositing_helper.h" 25 #include "content/renderer/child_frame_compositing_helper.h"
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 blink::WebLocalFrame* source) { 524 blink::WebLocalFrame* source) {
526 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID(); 525 int source_routing_id = RenderFrameImpl::FromWebFrame(source)->GetRoutingID();
527 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id)); 526 Send(new FrameHostMsg_AdvanceFocus(routing_id_, type, source_routing_id));
528 } 527 }
529 528
530 void RenderFrameProxy::frameFocused() { 529 void RenderFrameProxy::frameFocused() {
531 Send(new FrameHostMsg_FrameFocused(routing_id_)); 530 Send(new FrameHostMsg_FrameFocused(routing_id_));
532 } 531 }
533 532
534 } // namespace 533 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698