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 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 | 242 |
243 // Called when this frame has added a child. This is a continuation of an IPC | 243 // Called when this frame has added a child. This is a continuation of an IPC |
244 // that was partially handled on the IO thread (to allocate |new_routing_id|), | 244 // that was partially handled on the IO thread (to allocate |new_routing_id|), |
245 // and is forwarded here. The renderer has already been told to create a | 245 // and is forwarded here. The renderer has already been told to create a |
246 // RenderFrame with |new_routing_id|. | 246 // RenderFrame with |new_routing_id|. |
247 void OnCreateChildFrame(int new_routing_id, | 247 void OnCreateChildFrame(int new_routing_id, |
248 blink::WebTreeScopeType scope, | 248 blink::WebTreeScopeType scope, |
249 const std::string& frame_name, | 249 const std::string& frame_name, |
250 const std::string& frame_unique_name, | 250 const std::string& frame_unique_name, |
251 blink::WebSandboxFlags sandbox_flags, | 251 blink::WebSandboxFlags sandbox_flags, |
| 252 const ParsedFeaturePolicyHeader& container_policy, |
252 const FrameOwnerProperties& frame_owner_properties); | 253 const FrameOwnerProperties& frame_owner_properties); |
253 | 254 |
254 // Called when this frame tries to open a new WebContents, e.g. via a script | 255 // Called when this frame tries to open a new WebContents, e.g. via a script |
255 // call to window.open(). The renderer has already been told to create the | 256 // call to window.open(). The renderer has already been told to create the |
256 // RenderView and RenderFrame with the specified route ids, which were | 257 // RenderView and RenderFrame with the specified route ids, which were |
257 // assigned on the IO thread. | 258 // assigned on the IO thread. |
258 void OnCreateNewWindow(int32_t render_view_route_id, | 259 void OnCreateNewWindow(int32_t render_view_route_id, |
259 int32_t main_frame_route_id, | 260 int32_t main_frame_route_id, |
260 int32_t main_frame_widget_route_id, | 261 int32_t main_frame_widget_route_id, |
261 const mojom::CreateNewWindowParams& params, | 262 const mojom::CreateNewWindowParams& params, |
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 void OnDidChangeName(const std::string& name, const std::string& unique_name); | 729 void OnDidChangeName(const std::string& name, const std::string& unique_name); |
729 void OnDidSetFeaturePolicyHeader( | 730 void OnDidSetFeaturePolicyHeader( |
730 const ParsedFeaturePolicyHeader& parsed_header); | 731 const ParsedFeaturePolicyHeader& parsed_header); |
731 | 732 |
732 // A new set of CSP |policies| has been added to the document. | 733 // A new set of CSP |policies| has been added to the document. |
733 void OnDidAddContentSecurityPolicies( | 734 void OnDidAddContentSecurityPolicies( |
734 const std::vector<ContentSecurityPolicy>& policies); | 735 const std::vector<ContentSecurityPolicy>& policies); |
735 | 736 |
736 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); | 737 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
737 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); | 738 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); |
738 void OnDidChangeSandboxFlags(int32_t frame_routing_id, | 739 void OnDidChangeFramePolicy( |
739 blink::WebSandboxFlags flags); | 740 int32_t frame_routing_id, |
| 741 blink::WebSandboxFlags flags, |
| 742 const ParsedFeaturePolicyHeader& container_policy); |
740 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, | 743 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, |
741 const FrameOwnerProperties& properties); | 744 const FrameOwnerProperties& properties); |
742 void OnUpdateTitle(const base::string16& title, | 745 void OnUpdateTitle(const base::string16& title, |
743 blink::WebTextDirection title_direction); | 746 blink::WebTextDirection title_direction); |
744 void OnUpdateEncoding(const std::string& encoding); | 747 void OnUpdateEncoding(const std::string& encoding); |
745 void OnBeginNavigation(const CommonNavigationParams& common_params, | 748 void OnBeginNavigation(const CommonNavigationParams& common_params, |
746 const BeginNavigationParams& begin_params); | 749 const BeginNavigationParams& begin_params); |
747 void OnAbortNavigation(); | 750 void OnAbortNavigation(); |
748 void OnDispatchLoad(); | 751 void OnDispatchLoad(); |
749 void OnAccessibilityEvents( | 752 void OnAccessibilityEvents( |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 | 1180 |
1178 // NOTE: This must be the last member. | 1181 // NOTE: This must be the last member. |
1179 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1182 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1180 | 1183 |
1181 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1184 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1182 }; | 1185 }; |
1183 | 1186 |
1184 } // namespace content | 1187 } // namespace content |
1185 | 1188 |
1186 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1189 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |