| 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 3107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3118 Send(new FrameHostMsg_UpdateToUniqueOrigin( | 3118 Send(new FrameHostMsg_UpdateToUniqueOrigin( |
| 3119 routing_id_, is_potentially_trustworthy_unique_origin)); | 3119 routing_id_, is_potentially_trustworthy_unique_origin)); |
| 3120 } | 3120 } |
| 3121 | 3121 |
| 3122 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, | 3122 void RenderFrameImpl::didChangeSandboxFlags(blink::WebFrame* child_frame, |
| 3123 blink::WebSandboxFlags flags) { | 3123 blink::WebSandboxFlags flags) { |
| 3124 Send(new FrameHostMsg_DidChangeSandboxFlags( | 3124 Send(new FrameHostMsg_DidChangeSandboxFlags( |
| 3125 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); | 3125 routing_id_, GetRoutingIdForFrameOrProxy(child_frame), flags)); |
| 3126 } | 3126 } |
| 3127 | 3127 |
| 3128 void RenderFrameImpl::didSetFeaturePolicyHeader( |
| 3129 const blink::WebString& header_value) { |
| 3130 Send(new FrameHostMsg_DidSetFeaturePolicyHeader( |
| 3131 routing_id_, base::UTF16ToUTF8(base::StringPiece16(header_value)))); |
| 3132 } |
| 3133 |
| 3128 void RenderFrameImpl::didAddContentSecurityPolicy( | 3134 void RenderFrameImpl::didAddContentSecurityPolicy( |
| 3129 const blink::WebString& header_value, | 3135 const blink::WebString& header_value, |
| 3130 blink::WebContentSecurityPolicyType type, | 3136 blink::WebContentSecurityPolicyType type, |
| 3131 blink::WebContentSecurityPolicySource source) { | 3137 blink::WebContentSecurityPolicySource source) { |
| 3132 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) | 3138 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 3133 return; | 3139 return; |
| 3134 | 3140 |
| 3135 ContentSecurityPolicyHeader header; | 3141 ContentSecurityPolicyHeader header; |
| 3136 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); | 3142 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); |
| 3137 header.type = type; | 3143 header.type = type; |
| (...skipping 3448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6586 // event target. Potentially a Pepper plugin will receive the event. | 6592 // event target. Potentially a Pepper plugin will receive the event. |
| 6587 // In order to tell whether a plugin gets the last mouse event and which it | 6593 // In order to tell whether a plugin gets the last mouse event and which it |
| 6588 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6594 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6589 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6595 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6590 // |pepper_last_mouse_event_target_|. | 6596 // |pepper_last_mouse_event_target_|. |
| 6591 pepper_last_mouse_event_target_ = nullptr; | 6597 pepper_last_mouse_event_target_ = nullptr; |
| 6592 #endif | 6598 #endif |
| 6593 } | 6599 } |
| 6594 | 6600 |
| 6595 } // namespace content | 6601 } // namespace content |
| OLD | NEW |