| 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 3065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3076 Send(new FrameHostMsg_UpdateToUniqueOrigin( | 3076 Send(new FrameHostMsg_UpdateToUniqueOrigin( |
| 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( |
| 3087 const blink::WebString& header_value) { |
| 3088 Send(new FrameHostMsg_DidSetFeaturePolicyHeader(routing_id_, |
| 3089 header_value.utf8())); |
| 3090 } |
| 3091 |
| 3086 void RenderFrameImpl::didAddContentSecurityPolicy( | 3092 void RenderFrameImpl::didAddContentSecurityPolicy( |
| 3087 const blink::WebString& header_value, | 3093 const blink::WebString& header_value, |
| 3088 blink::WebContentSecurityPolicyType type, | 3094 blink::WebContentSecurityPolicyType type, |
| 3089 blink::WebContentSecurityPolicySource source) { | 3095 blink::WebContentSecurityPolicySource source) { |
| 3090 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) | 3096 if (!SiteIsolationPolicy::AreCrossProcessFramesPossible()) |
| 3091 return; | 3097 return; |
| 3092 | 3098 |
| 3093 ContentSecurityPolicyHeader header; | 3099 ContentSecurityPolicyHeader header; |
| 3094 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); | 3100 header.header_value = base::UTF16ToUTF8(base::StringPiece16(header_value)); |
| 3095 header.type = type; | 3101 header.type = type; |
| (...skipping 3513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6609 // event target. Potentially a Pepper plugin will receive the event. | 6615 // event target. Potentially a Pepper plugin will receive the event. |
| 6610 // In order to tell whether a plugin gets the last mouse event and which it | 6616 // In order to tell whether a plugin gets the last mouse event and which it |
| 6611 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6617 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
| 6612 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6618 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
| 6613 // |pepper_last_mouse_event_target_|. | 6619 // |pepper_last_mouse_event_target_|. |
| 6614 pepper_last_mouse_event_target_ = nullptr; | 6620 pepper_last_mouse_event_target_ = nullptr; |
| 6615 #endif | 6621 #endif |
| 6616 } | 6622 } |
| 6617 | 6623 |
| 6618 } // namespace content | 6624 } // namespace content |
| OLD | NEW |