| 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 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 const content::RequestNavigationParams& request_params); | 745 const content::RequestNavigationParams& request_params); |
| 746 | 746 |
| 747 // Returns the child FrameTreeNode if |child_frame_routing_id| is an | 747 // Returns the child FrameTreeNode if |child_frame_routing_id| is an |
| 748 // immediate child of this FrameTreeNode. |child_frame_routing_id| is | 748 // immediate child of this FrameTreeNode. |child_frame_routing_id| is |
| 749 // considered untrusted, so the renderer process is killed if it refers to a | 749 // considered untrusted, so the renderer process is killed if it refers to a |
| 750 // FrameTreeNode that is not a child of this node. | 750 // FrameTreeNode that is not a child of this node. |
| 751 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, | 751 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
| 752 bad_message::BadMessageReason reason); | 752 bad_message::BadMessageReason reason); |
| 753 | 753 |
| 754 // Creates a Web Bluetooth Service owned by the frame. | 754 // Creates a Web Bluetooth Service owned by the frame. |
| 755 void CreateWebBluetoothService( | 755 WebBluetoothServiceImpl* CreateWebBluetoothService( |
| 756 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 756 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
| 757 | 757 |
| 758 // Deletes the Web Bluetooth Service owned by the frame. | 758 // Deletes the Web Bluetooth Service owned by the frame. |
| 759 void DeleteWebBluetoothService(); | 759 void DeleteWebBluetoothService(); |
| 760 | 760 |
| 761 // Allows tests to disable the swapout event timer to simulate bugs that | 761 // Allows tests to disable the swapout event timer to simulate bugs that |
| 762 // happen before it fires (to avoid flakiness). | 762 // happen before it fires (to avoid flakiness). |
| 763 void DisableSwapOutTimerForTesting(); | 763 void DisableSwapOutTimerForTesting(); |
| 764 | 764 |
| 765 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 765 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 | 979 |
| 980 // NOTE: This must be the last member. | 980 // NOTE: This must be the last member. |
| 981 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 981 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 982 | 982 |
| 983 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 983 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 984 }; | 984 }; |
| 985 | 985 |
| 986 } // namespace content | 986 } // namespace content |
| 987 | 987 |
| 988 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 988 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |