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 <list> |
11 #include <map> | 12 #include <map> |
12 #include <set> | 13 #include <set> |
13 #include <string> | 14 #include <string> |
14 #include <vector> | 15 #include <vector> |
15 | 16 |
16 #include "base/callback.h" | 17 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
18 #include "base/gtest_prod_util.h" | 19 #include "base/gtest_prod_util.h" |
19 #include "base/macros.h" | 20 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 // FrameTreeNode that is not a child of this node. | 811 // FrameTreeNode that is not a child of this node. |
811 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, | 812 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
812 bad_message::BadMessageReason reason); | 813 bad_message::BadMessageReason reason); |
813 | 814 |
814 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer | 815 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer |
815 // to it. | 816 // to it. |
816 WebBluetoothServiceImpl* CreateWebBluetoothService( | 817 WebBluetoothServiceImpl* CreateWebBluetoothService( |
817 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 818 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
818 | 819 |
819 // Deletes the Web Bluetooth Service owned by the frame. | 820 // Deletes the Web Bluetooth Service owned by the frame. |
820 void DeleteWebBluetoothService(); | 821 void DeleteWebBluetoothService( |
| 822 WebBluetoothServiceImpl* web_bluetooth_service); |
821 | 823 |
822 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory> | 824 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory> |
823 void Create(const service_manager::Identity& remote_identity, | 825 void Create(const service_manager::Identity& remote_identity, |
824 media::mojom::InterfaceFactoryRequest request) override; | 826 media::mojom::InterfaceFactoryRequest request) override; |
825 | 827 |
826 // Callback for connection error on the media::mojom::InterfaceFactory client. | 828 // Callback for connection error on the media::mojom::InterfaceFactory client. |
827 void OnMediaInterfaceFactoryConnectionError(); | 829 void OnMediaInterfaceFactoryConnectionError(); |
828 | 830 |
829 // Allows tests to disable the swapout event timer to simulate bugs that | 831 // Allows tests to disable the swapout event timer to simulate bugs that |
830 // happen before it fires (to avoid flakiness). | 832 // happen before it fires (to avoid flakiness). |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
991 service_manager::ServiceInfo renderer_info_; | 993 service_manager::ServiceInfo renderer_info_; |
992 | 994 |
993 int on_connect_handler_id_ = 0; | 995 int on_connect_handler_id_ = 0; |
994 | 996 |
995 #if defined(OS_ANDROID) | 997 #if defined(OS_ANDROID) |
996 // The filter for MessagePort messages between an Android apps and web. | 998 // The filter for MessagePort messages between an Android apps and web. |
997 scoped_refptr<AppWebMessagePortMessageFilter> | 999 scoped_refptr<AppWebMessagePortMessageFilter> |
998 app_web_message_port_message_filter_; | 1000 app_web_message_port_message_filter_; |
999 #endif | 1001 #endif |
1000 | 1002 |
1001 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; | 1003 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; |
1002 | 1004 |
1003 // The object managing the accessibility tree for this frame. | 1005 // The object managing the accessibility tree for this frame. |
1004 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 1006 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
1005 | 1007 |
1006 // This is nonzero if we sent an accessibility reset to the renderer and | 1008 // This is nonzero if we sent an accessibility reset to the renderer and |
1007 // we're waiting for an IPC containing this reset token (sequentially | 1009 // we're waiting for an IPC containing this reset token (sequentially |
1008 // assigned) and a complete replacement accessibility tree. | 1010 // assigned) and a complete replacement accessibility tree. |
1009 int accessibility_reset_token_; | 1011 int accessibility_reset_token_; |
1010 | 1012 |
1011 // A count of the number of times we needed to reset accessibility, so | 1013 // A count of the number of times we needed to reset accessibility, so |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 | 1106 |
1105 // NOTE: This must be the last member. | 1107 // NOTE: This must be the last member. |
1106 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1108 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1107 | 1109 |
1108 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1110 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1109 }; | 1111 }; |
1110 | 1112 |
1111 } // namespace content | 1113 } // namespace content |
1112 | 1114 |
1113 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1115 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |