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