Chromium Code Reviews| 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 3124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3135 Send(new FrameHostMsg_UpdateToUniqueOrigin( | 3135 Send(new FrameHostMsg_UpdateToUniqueOrigin( |
| 3136 routing_id_, is_potentially_trustworthy_unique_origin)); | 3136 routing_id_, is_potentially_trustworthy_unique_origin)); |
| 3137 } | 3137 } |
| 3138 | 3138 |
| 3139 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, | 3139 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, |
| 3140 blink::WebSandboxFlags flags) { | 3140 blink::WebSandboxFlags flags) { |
| 3141 Send(new FrameHostMsg_DidChangeSandboxFlags( | 3141 Send(new FrameHostMsg_DidChangeSandboxFlags( |
| 3142 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); | 3142 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); |
| 3143 } | 3143 } |
| 3144 | 3144 |
| 3145 void RenderFrameImpl::didSetFeaturePolicyHeader( | |
| 3146 const blink::WebString& header_value) { | |
| 3147 Send(new FrameHostMsg_DidSetFeaturePolicyHeader( | |
| 3148 routing_id_, base::UTF16ToUTF8(base::StringPiece16(header_value)))); | |
|
dcheng
2016/11/20 21:04:12
Nit: header_value.utf8() will be slightly more eff
iclelland
2016/11/21 05:05:33
Done.
| |
| 3149 } | |
| 3150 | |
| 3145 void RenderFrameImpl::didAddContentSecurityPolicy( | 3151 void RenderFrameImpl::didAddContentSecurityPolicy( |
| 3146 const blink::WebString& header_value, | 3152 const blink::WebString& header_value, |
| 3147 blink::WebContentSecurityPolicyType type, | 3153 blink::WebContentSecurityPolicyType type, |
| 3148 blink::WebContentSecurityPolicySource source) { | 3154 blink::WebContentSecurityPolicySource source) { |
| 3149 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) | 3155 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 3150 return; | 3156 return; |
| 3151 | 3157 |
| 3152 ContentSecurityPolicyHeader header; | 3158 ContentSecurityPolicyHeader header; |
| 3153 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); | 3159 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); |
| 3154 header.type = type; | 3160 header.type = type; |
| (...skipping 3476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6631 // event target. Potentially a Pepper plugin will receive the event. | 6637 // event target. Potentially a Pepper plugin will receive the event. |
| 6632 // In order to tell whether a plugin gets the last mouse event and which it | 6638 // In order to tell whether a plugin gets the last mouse event and which it |
| 6633 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6639 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6634 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6640 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6635 // |pepper_last_mouse_event_target_|. | 6641 // |pepper_last_mouse_event_target_|. |
| 6636 pepper_last_mouse_event_target_ = nullptr; | 6642 pepper_last_mouse_event_target_ = nullptr; |
| 6637 #endif | 6643 #endif |
| 6638 } | 6644 } |
| 6639 | 6645 |
| 6640 } // namespace content | 6646 } // namespace content |
| OLD | NEW |