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 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/browser/accessibility/browser_accessibility_manager.h" | 24 #include "content/browser/accessibility/browser_accessibility_manager.h" |
25 #include "content/browser/bad_message.h" | 25 #include "content/browser/bad_message.h" |
26 #include "content/browser/bluetooth/web_bluetooth_service_impl.h" | |
Jeffrey Yasskin
2016/03/29 20:30:02
You only need a forward declaration in the header,
ortuno
2016/03/29 22:14:04
Done.
| |
26 #include "content/browser/loader/global_routing_id.h" | 27 #include "content/browser/loader/global_routing_id.h" |
27 #include "content/browser/site_instance_impl.h" | 28 #include "content/browser/site_instance_impl.h" |
28 #include "content/browser/webui/web_ui_impl.h" | 29 #include "content/browser/webui/web_ui_impl.h" |
29 #include "content/common/accessibility_mode_enums.h" | 30 #include "content/common/accessibility_mode_enums.h" |
30 #include "content/common/ax_content_node_data.h" | 31 #include "content/common/ax_content_node_data.h" |
31 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
32 #include "content/common/frame_message_enums.h" | 33 #include "content/common/frame_message_enums.h" |
33 #include "content/common/frame_replication_state.h" | 34 #include "content/common/frame_replication_state.h" |
34 #include "content/common/image_downloader/image_downloader.mojom.h" | 35 #include "content/common/image_downloader/image_downloader.mojom.h" |
35 #include "content/common/mojo/service_registry_impl.h" | 36 #include "content/common/mojo/service_registry_impl.h" |
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
726 const content::StartNavigationParams& start_params, | 727 const content::StartNavigationParams& start_params, |
727 const content::RequestNavigationParams& request_params); | 728 const content::RequestNavigationParams& request_params); |
728 | 729 |
729 // Returns the child FrameTreeNode if |child_frame_routing_id| is an | 730 // Returns the child FrameTreeNode if |child_frame_routing_id| is an |
730 // immediate child of this FrameTreeNode. |child_frame_routing_id| is | 731 // immediate child of this FrameTreeNode. |child_frame_routing_id| is |
731 // considered untrusted, so the renderer process is killed if it refers to a | 732 // considered untrusted, so the renderer process is killed if it refers to a |
732 // FrameTreeNode that is not a child of this node. | 733 // FrameTreeNode that is not a child of this node. |
733 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, | 734 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
734 bad_message::BadMessageReason reason); | 735 bad_message::BadMessageReason reason); |
735 | 736 |
737 // Creates a Web Bluetooth Service owned by the frame. | |
738 void CreateWebBluetoothService( | |
739 blink::mojom::WebBluetoothServiceRequest request); | |
740 | |
736 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 741 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
737 // refcount that calls Shutdown when it reaches zero. This allows each | 742 // refcount that calls Shutdown when it reaches zero. This allows each |
738 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 743 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
739 // we have a RenderViewHost for each RenderFrameHost. | 744 // we have a RenderViewHost for each RenderFrameHost. |
740 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 745 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
741 // some form of page context. | 746 // some form of page context. |
742 RenderViewHostImpl* render_view_host_; | 747 RenderViewHostImpl* render_view_host_; |
743 | 748 |
744 RenderFrameHostDelegate* delegate_; | 749 RenderFrameHostDelegate* delegate_; |
745 | 750 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 // long to execute, depending on the number of active frames in the | 870 // long to execute, depending on the number of active frames in the |
866 // SiteInstance. | 871 // SiteInstance. |
867 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 872 scoped_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
868 | 873 |
869 scoped_ptr<ServiceRegistryImpl> service_registry_; | 874 scoped_ptr<ServiceRegistryImpl> service_registry_; |
870 | 875 |
871 #if defined(OS_ANDROID) | 876 #if defined(OS_ANDROID) |
872 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; | 877 scoped_ptr<ServiceRegistryAndroid> service_registry_android_; |
873 #endif | 878 #endif |
874 | 879 |
880 scoped_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; | |
881 | |
875 // The object managing the accessibility tree for this frame. | 882 // The object managing the accessibility tree for this frame. |
876 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 883 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
877 | 884 |
878 // This is nonzero if we sent an accessibility reset to the renderer and | 885 // This is nonzero if we sent an accessibility reset to the renderer and |
879 // we're waiting for an IPC containing this reset token (sequentially | 886 // we're waiting for an IPC containing this reset token (sequentially |
880 // assigned) and a complete replacement accessibility tree. | 887 // assigned) and a complete replacement accessibility tree. |
881 int accessibility_reset_token_; | 888 int accessibility_reset_token_; |
882 | 889 |
883 // A count of the number of times we needed to reset accessibility, so | 890 // A count of the number of times we needed to reset accessibility, so |
884 // we don't keep trying to reset forever. | 891 // we don't keep trying to reset forever. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
947 | 954 |
948 // NOTE: This must be the last member. | 955 // NOTE: This must be the last member. |
949 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 956 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
950 | 957 |
951 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 958 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
952 }; | 959 }; |
953 | 960 |
954 } // namespace content | 961 } // namespace content |
955 | 962 |
956 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 963 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |