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

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

Issue 2520223002: Replicate a parsed feature policy representation so it doesn't need to be parsed in the browser pro… (Closed)
Patch Set: Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 routing_id_, is_potentially_trustworthy_unique_origin)); 3077 routing_id_, is_potentially_trustworthy_unique_origin));
3078 } 3078 }
3079 3079
3080 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, 3080 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame,
3081 blink::WebSandboxFlags flags) { 3081 blink::WebSandboxFlags flags) {
3082 Send(new FrameHostMsg_DidChangeSandboxFlags( 3082 Send(new FrameHostMsg_DidChangeSandboxFlags(
3083 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); 3083 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags));
3084 } 3084 }
3085 3085
3086 void RenderFrameImpl::didSetFeaturePolicyHeader( 3086 void RenderFrameImpl::didSetFeaturePolicyHeader(
3087 const blink::WebString& header_value) { 3087 const blink::WebVector<blink::WebFeaturePolicy::ParsedWhitelist>&
3088 header_policy) {
3088 Send(new FrameHostMsg_DidSetFeaturePolicyHeader( 3089 Send(new FrameHostMsg_DidSetFeaturePolicyHeader(
3089 routing_id_, base::UTF16ToUTF8(base::StringPiece16(header_value)))); 3090 routing_id_,
3091 FeaturePolicyParsedWhitelist::fromWebFeaturePolicyParsedWhitelist(
3092 header_policy)));
3090 } 3093 }
3091 3094
3092 void RenderFrameImpl::didAddContentSecurityPolicy( 3095 void RenderFrameImpl::didAddContentSecurityPolicy(
3093 const blink::WebString& header_value, 3096 const blink::WebString& header_value,
3094 blink::WebContentSecurityPolicyType type, 3097 blink::WebContentSecurityPolicyType type,
3095 blink::WebContentSecurityPolicySource source) { 3098 blink::WebContentSecurityPolicySource source) {
3096 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) 3099 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible())
3097 return; 3100 return;
3098 3101
3099 ContentSecurityPolicyHeader header; 3102 ContentSecurityPolicyHeader header;
(...skipping 3515 matching lines...) Expand 10 before | Expand all | Expand 10 after
6615 // event target. Potentially a Pepper plugin will receive the event. 6618 // event target. Potentially a Pepper plugin will receive the event.
6616 // In order to tell whether a plugin gets the last mouse event and which it 6619 // In order to tell whether a plugin gets the last mouse event and which it
6617 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6620 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6618 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6621 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6619 // |pepper_last_mouse_event_target_|. 6622 // |pepper_last_mouse_event_target_|.
6620 pepper_last_mouse_event_target_ = nullptr; 6623 pepper_last_mouse_event_target_ = nullptr;
6621 #endif 6624 #endif
6622 } 6625 }
6623 6626
6624 } // namespace content 6627 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698