| OLD | NEW |
| 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 3130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3141 Send(new FrameHostMsg_UpdateToUniqueOrigin( | 3141 Send(new FrameHostMsg_UpdateToUniqueOrigin( |
| 3142 routing_id_, is_potentially_trustworthy_unique_origin)); | 3142 routing_id_, is_potentially_trustworthy_unique_origin)); |
| 3143 } | 3143 } |
| 3144 | 3144 |
| 3145 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, | 3145 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, |
| 3146 blink::WebSandboxFlags flags) { | 3146 blink::WebSandboxFlags flags) { |
| 3147 Send(new FrameHostMsg_DidChangeSandboxFlags( | 3147 Send(new FrameHostMsg_DidChangeSandboxFlags( |
| 3148 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); | 3148 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); |
| 3149 } | 3149 } |
| 3150 | 3150 |
| 3151 void RenderFrameImpl::didSetFeaturePolicyHeader( |
| 3152 const blink::WebString& header_value) { |
| 3153 Send(new FrameHostMsg_DidSetFeaturePolicyHeader( |
| 3154 routing_id_, base::UTF16ToUTF8(base::StringPiece16(header_value)))); |
| 3155 } |
| 3156 |
| 3151 void RenderFrameImpl::didAddContentSecurityPolicy( | 3157 void RenderFrameImpl::didAddContentSecurityPolicy( |
| 3152 const blink::WebString& header_value, | 3158 const blink::WebString& header_value, |
| 3153 blink::WebContentSecurityPolicyType type, | 3159 blink::WebContentSecurityPolicyType type, |
| 3154 blink::WebContentSecurityPolicySource source) { | 3160 blink::WebContentSecurityPolicySource source) { |
| 3155 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) | 3161 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 3156 return; | 3162 return; |
| 3157 | 3163 |
| 3158 ContentSecurityPolicyHeader header; | 3164 ContentSecurityPolicyHeader header; |
| 3159 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); | 3165 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); |
| 3160 header.type = type; | 3166 header.type = type; |
| (...skipping 3476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6637 // event target. Potentially a Pepper plugin will receive the event. | 6643 // event target. Potentially a Pepper plugin will receive the event. |
| 6638 // In order to tell whether a plugin gets the last mouse event and which it | 6644 // In order to tell whether a plugin gets the last mouse event and which it |
| 6639 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6645 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6640 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6646 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6641 // |pepper_last_mouse_event_target_|. | 6647 // |pepper_last_mouse_event_target_|. |
| 6642 pepper_last_mouse_event_target_ = nullptr; | 6648 pepper_last_mouse_event_target_ = nullptr; |
| 6643 #endif | 6649 #endif |
| 6644 } | 6650 } |
| 6645 | 6651 |
| 6646 } // namespace content | 6652 } // namespace content |
| OLD | NEW |