OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/common/feature_policy/feature_policy.h" |
11 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
12 #include "ipc/ipc_sender.h" | 13 #include "ipc/ipc_sender.h" |
13 #include "third_party/WebKit/public/platform/WebFocusType.h" | 14 #include "third_party/WebKit/public/platform/WebFocusType.h" |
14 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 15 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
15 #include "third_party/WebKit/public/web/WebRemoteFrame.h" | 16 #include "third_party/WebKit/public/web/WebRemoteFrame.h" |
16 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" | 17 #include "third_party/WebKit/public/web/WebRemoteFrameClient.h" |
17 #include "url/origin.h" | 18 #include "url/origin.h" |
18 | 19 |
19 namespace blink { | 20 namespace blink { |
20 struct WebRect; | 21 struct WebRect; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 bool OnMessageReceived(const IPC::Message& msg) override; | 159 bool OnMessageReceived(const IPC::Message& msg) override; |
159 | 160 |
160 // IPC handlers | 161 // IPC handlers |
161 void OnDeleteProxy(); | 162 void OnDeleteProxy(); |
162 void OnChildFrameProcessGone(); | 163 void OnChildFrameProcessGone(); |
163 void OnCompositorFrameSwapped(const IPC::Message& message); | 164 void OnCompositorFrameSwapped(const IPC::Message& message); |
164 void OnSetChildFrameSurface(const cc::SurfaceInfo& surface_info, | 165 void OnSetChildFrameSurface(const cc::SurfaceInfo& surface_info, |
165 const cc::SurfaceSequence& sequence); | 166 const cc::SurfaceSequence& sequence); |
166 void OnUpdateOpener(int opener_routing_id); | 167 void OnUpdateOpener(int opener_routing_id); |
167 void OnDidStopLoading(); | 168 void OnDidStopLoading(); |
168 void OnDidUpdateSandboxFlags(blink::WebSandboxFlags flags); | 169 void OnDidUpdateFramePolicy( |
| 170 blink::WebSandboxFlags flags, |
| 171 const ParsedFeaturePolicyHeader& container_policy); |
169 void OnDispatchLoad(); | 172 void OnDispatchLoad(); |
170 void OnDidUpdateName(const std::string& name, const std::string& unique_name); | 173 void OnDidUpdateName(const std::string& name, const std::string& unique_name); |
171 void OnAddContentSecurityPolicies( | 174 void OnAddContentSecurityPolicies( |
172 const std::vector<ContentSecurityPolicyHeader>& header); | 175 const std::vector<ContentSecurityPolicyHeader>& header); |
173 void OnResetContentSecurityPolicy(); | 176 void OnResetContentSecurityPolicy(); |
174 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); | 177 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
175 void OnSetFrameOwnerProperties(const FrameOwnerProperties& properties); | 178 void OnSetFrameOwnerProperties(const FrameOwnerProperties& properties); |
176 void OnDidUpdateOrigin(const url::Origin& origin, | 179 void OnDidUpdateOrigin(const url::Origin& origin, |
177 bool is_potentially_trustworthy_unique_origin); | 180 bool is_potentially_trustworthy_unique_origin); |
178 void OnSetPageFocus(bool is_focused); | 181 void OnSetPageFocus(bool is_focused); |
(...skipping 15 matching lines...) Expand all Loading... |
194 | 197 |
195 RenderViewImpl* render_view_; | 198 RenderViewImpl* render_view_; |
196 RenderWidget* render_widget_; | 199 RenderWidget* render_widget_; |
197 | 200 |
198 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); | 201 DISALLOW_COPY_AND_ASSIGN(RenderFrameProxy); |
199 }; | 202 }; |
200 | 203 |
201 } // namespace | 204 } // namespace |
202 | 205 |
203 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ | 206 #endif // CONTENT_RENDERER_RENDER_FRAME_PROXY_H_ |
OLD | NEW |