| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 class TimeoutMonitor; | 93 class TimeoutMonitor; |
| 94 class WebBluetoothServiceImpl; | 94 class WebBluetoothServiceImpl; |
| 95 struct ContentSecurityPolicyHeader; | 95 struct ContentSecurityPolicyHeader; |
| 96 struct ContextMenuParams; | 96 struct ContextMenuParams; |
| 97 struct FileChooserParams; | 97 struct FileChooserParams; |
| 98 struct GlobalRequestID; | 98 struct GlobalRequestID; |
| 99 struct FileChooserParams; | 99 struct FileChooserParams; |
| 100 struct Referrer; | 100 struct Referrer; |
| 101 struct ResourceResponse; | 101 struct ResourceResponse; |
| 102 | 102 |
| 103 namespace mojom { |
| 104 class WebSocket; |
| 105 } |
| 106 |
| 103 class CONTENT_EXPORT RenderFrameHostImpl | 107 class CONTENT_EXPORT RenderFrameHostImpl |
| 104 : public RenderFrameHost, | 108 : public RenderFrameHost, |
| 105 NON_EXPORTED_BASE(public mojom::FrameHost), | 109 NON_EXPORTED_BASE(public mojom::FrameHost), |
| 106 public BrowserAccessibilityDelegate, | 110 public BrowserAccessibilityDelegate, |
| 107 public SiteInstanceImpl::Observer { | 111 public SiteInstanceImpl::Observer { |
| 108 public: | 112 public: |
| 109 using AXTreeSnapshotCallback = | 113 using AXTreeSnapshotCallback = |
| 110 base::Callback<void( | 114 base::Callback<void( |
| 111 const ui::AXTreeUpdate&)>; | 115 const ui::AXTreeUpdate&)>; |
| 112 | 116 |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 const content::StartNavigationParams& start_params, | 797 const content::StartNavigationParams& start_params, |
| 794 const content::RequestNavigationParams& request_params); | 798 const content::RequestNavigationParams& request_params); |
| 795 | 799 |
| 796 // Returns the child FrameTreeNode if |child_frame_routing_id| is an | 800 // Returns the child FrameTreeNode if |child_frame_routing_id| is an |
| 797 // immediate child of this FrameTreeNode. |child_frame_routing_id| is | 801 // immediate child of this FrameTreeNode. |child_frame_routing_id| is |
| 798 // considered untrusted, so the renderer process is killed if it refers to a | 802 // considered untrusted, so the renderer process is killed if it refers to a |
| 799 // FrameTreeNode that is not a child of this node. | 803 // FrameTreeNode that is not a child of this node. |
| 800 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, | 804 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
| 801 bad_message::BadMessageReason reason); | 805 bad_message::BadMessageReason reason); |
| 802 | 806 |
| 807 void CreateWebSocket( |
| 808 mojo::InterfaceRequest<mojom::WebSocket> request); |
| 809 |
| 803 // Creates a Web Bluetooth Service owned by the frame. | 810 // Creates a Web Bluetooth Service owned by the frame. |
| 804 void CreateWebBluetoothService( | 811 void CreateWebBluetoothService( |
| 805 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 812 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
| 806 | 813 |
| 807 // Deletes the Web Bluetooth Service owned by the frame. | 814 // Deletes the Web Bluetooth Service owned by the frame. |
| 808 void DeleteWebBluetoothService(); | 815 void DeleteWebBluetoothService(); |
| 809 | 816 |
| 810 // Allows tests to disable the swapout event timer to simulate bugs that | 817 // Allows tests to disable the swapout event timer to simulate bugs that |
| 811 // happen before it fires (to avoid flakiness). | 818 // happen before it fires (to avoid flakiness). |
| 812 void DisableSwapOutTimerForTesting(); | 819 void DisableSwapOutTimerForTesting(); |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1031 | 1038 |
| 1032 // NOTE: This must be the last member. | 1039 // NOTE: This must be the last member. |
| 1033 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1040 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1034 | 1041 |
| 1035 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1042 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1036 }; | 1043 }; |
| 1037 | 1044 |
| 1038 } // namespace content | 1045 } // namespace content |
| 1039 | 1046 |
| 1040 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1047 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |