Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
Patch Set: . Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 #include "content/browser/loader/global_routing_id.h" 26 #include "content/browser/loader/global_routing_id.h"
27 #include "content/browser/site_instance_impl.h" 27 #include "content/browser/site_instance_impl.h"
28 #include "content/browser/webui/web_ui_impl.h" 28 #include "content/browser/webui/web_ui_impl.h"
29 #include "content/common/accessibility_mode_enums.h" 29 #include "content/common/accessibility_mode_enums.h"
30 #include "content/common/ax_content_node_data.h" 30 #include "content/common/ax_content_node_data.h"
31 #include "content/common/content_export.h" 31 #include "content/common/content_export.h"
32 #include "content/common/frame.mojom.h" 32 #include "content/common/frame.mojom.h"
33 #include "content/common/frame_message_enums.h" 33 #include "content/common/frame_message_enums.h"
34 #include "content/common/frame_replication_state.h" 34 #include "content/common/frame_replication_state.h"
35 #include "content/common/image_downloader/image_downloader.mojom.h" 35 #include "content/common/image_downloader/image_downloader.mojom.h"
36 #include "content/common/mojo/service_registry_impl.h"
37 #include "content/common/navigation_params.h" 36 #include "content/common/navigation_params.h"
38 #include "content/public/browser/render_frame_host.h" 37 #include "content/public/browser/render_frame_host.h"
39 #include "content/public/common/javascript_message_type.h" 38 #include "content/public/common/javascript_message_type.h"
40 #include "net/http/http_response_headers.h" 39 #include "net/http/http_response_headers.h"
40 #include "services/shell/public/cpp/interface_registry.h"
41 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" 41 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h"
42 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h" 42 #include "third_party/WebKit/public/web/WebFrameOwnerProperties.h"
43 #include "third_party/WebKit/public/web/WebTextDirection.h" 43 #include "third_party/WebKit/public/web/WebTextDirection.h"
44 #include "third_party/WebKit/public/web/WebTreeScopeType.h" 44 #include "third_party/WebKit/public/web/WebTreeScopeType.h"
45 #include "ui/accessibility/ax_node_data.h" 45 #include "ui/accessibility/ax_node_data.h"
46 #include "ui/base/page_transition_types.h" 46 #include "ui/base/page_transition_types.h"
47 47
48 #if defined(OS_ANDROID) 48 #if defined(OS_ANDROID)
49 #include "content/public/browser/android/service_registry_android.h" 49 #include "content/public/browser/android/service_registry_android.h"
50 #endif 50 #endif
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void ExecuteJavaScriptForTests( 147 void ExecuteJavaScriptForTests(
148 const base::string16& javascript, 148 const base::string16& javascript,
149 const JavaScriptResultCallback& callback) override; 149 const JavaScriptResultCallback& callback) override;
150 void ExecuteJavaScriptWithUserGestureForTests( 150 void ExecuteJavaScriptWithUserGestureForTests(
151 const base::string16& javascript) override; 151 const base::string16& javascript) override;
152 void ActivateFindInPageResultForAccessibility(int request_id) override; 152 void ActivateFindInPageResultForAccessibility(int request_id) override;
153 void InsertVisualStateCallback(const VisualStateCallback& callback) override; 153 void InsertVisualStateCallback(const VisualStateCallback& callback) override;
154 void CopyImageAt(int x, int y) override; 154 void CopyImageAt(int x, int y) override;
155 void SaveImageAt(int x, int y) override; 155 void SaveImageAt(int x, int y) override;
156 RenderViewHost* GetRenderViewHost() override; 156 RenderViewHost* GetRenderViewHost() override;
157 ServiceRegistry* GetServiceRegistry() override; 157 shell::InterfaceRegistry* GetInterfaceRegistry() override;
158 shell::InterfaceProvider* GetRemoteInterfaces() override;
158 blink::WebPageVisibilityState GetVisibilityState() override; 159 blink::WebPageVisibilityState GetVisibilityState() override;
159 bool IsRenderFrameLive() override; 160 bool IsRenderFrameLive() override;
160 int GetProxyCount() override; 161 int GetProxyCount() override;
161 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 162 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
162 FileChooserParams::Mode permissions) override; 163 FileChooserParams::Mode permissions) override;
163 164
164 // mojom::FrameHost 165 // mojom::FrameHost
165 void GetInterfaceProvider( 166 void GetInterfaceProvider(
166 shell::mojom::InterfaceProviderRequest interfaces) override; 167 shell::mojom::InterfaceProviderRequest interfaces) override;
167 168
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 void OnSerializeAsMHTMLResponse( 708 void OnSerializeAsMHTMLResponse(
708 int job_id, 709 int job_id,
709 bool success, 710 bool success,
710 const std::set<std::string>& digests_of_uris_of_serialized_resources); 711 const std::set<std::string>& digests_of_uris_of_serialized_resources);
711 712
712 #if defined(USE_EXTERNAL_POPUP_MENU) 713 #if defined(USE_EXTERNAL_POPUP_MENU)
713 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params); 714 void OnShowPopup(const FrameHostMsg_ShowPopup_Params& params);
714 void OnHidePopup(); 715 void OnHidePopup();
715 #endif 716 #endif
716 717
717 // Registers Mojo services that this frame host makes available. 718 // Registers Mojo interfaces that this frame host makes available.
718 void RegisterMojoServices(); 719 void RegisterMojoInterfaces();
719 720
720 // Resets any waiting state of this RenderFrameHost that is no longer 721 // Resets any waiting state of this RenderFrameHost that is no longer
721 // relevant. 722 // relevant.
722 void ResetWaitingState(); 723 void ResetWaitingState();
723 724
724 // Returns whether the given URL is allowed to commit in the current process. 725 // Returns whether the given URL is allowed to commit in the current process.
725 // This is a more conservative check than RenderProcessHost::FilterURL, since 726 // This is a more conservative check than RenderProcessHost::FilterURL, since
726 // it will be used to kill processes that commit unauthorized URLs. 727 // it will be used to kill processes that commit unauthorized URLs.
727 bool CanCommitURL(const GURL& url); 728 bool CanCommitURL(const GURL& url);
728 729
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 // such as for a new subframe navigation in a different frame. Tracking this 941 // such as for a new subframe navigation in a different frame. Tracking this
941 // allows us to send things like title and state updates to the latest 942 // allows us to send things like title and state updates to the latest
942 // relevant NavigationEntry. 943 // relevant NavigationEntry.
943 int nav_entry_id_; 944 int nav_entry_id_;
944 945
945 // Used to swap out or shut down this RFH when the unload event is taking too 946 // Used to swap out or shut down this RFH when the unload event is taking too
946 // long to execute, depending on the number of active frames in the 947 // long to execute, depending on the number of active frames in the
947 // SiteInstance. May be null in tests. 948 // SiteInstance. May be null in tests.
948 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; 949 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_;
949 950
950 std::unique_ptr<ServiceRegistryImpl> service_registry_; 951 std::unique_ptr<shell::InterfaceRegistry> interface_registry_;
952 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_;
951 953
952 #if defined(OS_ANDROID) 954 #if defined(OS_ANDROID)
953 std::unique_ptr<ServiceRegistryAndroid> service_registry_android_; 955 std::unique_ptr<ServiceRegistryAndroid> service_registry_android_;
954 #endif 956 #endif
955 957
956 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; 958 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_;
957 959
958 // The object managing the accessibility tree for this frame. 960 // The object managing the accessibility tree for this frame.
959 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; 961 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_;
960 962
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 1035
1034 // NOTE: This must be the last member. 1036 // NOTE: This must be the last member.
1035 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1037 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1036 1038
1037 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1039 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1038 }; 1040 };
1039 1041
1040 } // namespace content 1042 } // namespace content
1041 1043
1042 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1044 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698