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

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

Issue 2739203002: Initial Implementation of Iframe Attribute for Feature Policy (Part 3) (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 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 3174 matching lines...) Expand 10 before | Expand all | Expand 10 after
3185 routing_id_, is_potentially_trustworthy_unique_origin)); 3185 routing_id_, is_potentially_trustworthy_unique_origin));
3186 } 3186 }
3187 3187
3188 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, 3188 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame,
3189 blink::WebSandboxFlags flags) { 3189 blink::WebSandboxFlags flags) {
3190 Send(new FrameHostMsg_DidChangeSandboxFlags( 3190 Send(new FrameHostMsg_DidChangeSandboxFlags(
3191 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); 3191 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags));
3192 } 3192 }
3193 3193
3194 void RenderFrameImpl::didSetFeaturePolicyHeader( 3194 void RenderFrameImpl::didSetFeaturePolicyHeader(
3195 const blink::WebParsedFeaturePolicyHeader& parsed_header) { 3195 const blink::WebParsedFeaturePolicy& parsed_header) {
3196 Send(new FrameHostMsg_DidSetFeaturePolicyHeader( 3196 Send(new FrameHostMsg_DidSetFeaturePolicyHeader(
3197 routing_id_, FeaturePolicyHeaderFromWeb(parsed_header))); 3197 routing_id_, FeaturePolicyHeaderFromWeb(parsed_header)));
3198 } 3198 }
3199 3199
3200 void RenderFrameImpl::didAddContentSecurityPolicy( 3200 void RenderFrameImpl::didAddContentSecurityPolicy(
3201 const blink::WebString& header_value, 3201 const blink::WebString& header_value,
3202 blink::WebContentSecurityPolicyType type, 3202 blink::WebContentSecurityPolicyType type,
3203 blink::WebContentSecurityPolicySource source, 3203 blink::WebContentSecurityPolicySource source,
3204 const std::vector<blink::WebContentSecurityPolicyPolicy>& policies) { 3204 const std::vector<blink::WebContentSecurityPolicyPolicy>& policies) {
3205 ContentSecurityPolicyHeader header; 3205 ContentSecurityPolicyHeader header;
(...skipping 3665 matching lines...) Expand 10 before | Expand all | Expand 10 after
6871 // event target. Potentially a Pepper plugin will receive the event. 6871 // event target. Potentially a Pepper plugin will receive the event.
6872 // In order to tell whether a plugin gets the last mouse event and which it 6872 // In order to tell whether a plugin gets the last mouse event and which it
6873 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets 6873 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets
6874 // the event, it will notify us via DidReceiveMouseEvent() and set itself as 6874 // the event, it will notify us via DidReceiveMouseEvent() and set itself as
6875 // |pepper_last_mouse_event_target_|. 6875 // |pepper_last_mouse_event_target_|.
6876 pepper_last_mouse_event_target_ = nullptr; 6876 pepper_last_mouse_event_target_ = nullptr;
6877 #endif 6877 #endif
6878 } 6878 }
6879 6879
6880 } // namespace content 6880 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698