| 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 26 matching lines...) Expand all Loading... |
| 37 #include "content/common/download/mhtml_save_status.h" | 37 #include "content/common/download/mhtml_save_status.h" |
| 38 #include "content/common/features.h" | 38 #include "content/common/features.h" |
| 39 #include "content/common/frame.mojom.h" | 39 #include "content/common/frame.mojom.h" |
| 40 #include "content/common/frame_message_enums.h" | 40 #include "content/common/frame_message_enums.h" |
| 41 #include "content/common/frame_replication_state.h" | 41 #include "content/common/frame_replication_state.h" |
| 42 #include "content/common/image_downloader/image_downloader.mojom.h" | 42 #include "content/common/image_downloader/image_downloader.mojom.h" |
| 43 #include "content/common/navigation_params.h" | 43 #include "content/common/navigation_params.h" |
| 44 #include "content/public/browser/render_frame_host.h" | 44 #include "content/public/browser/render_frame_host.h" |
| 45 #include "content/public/common/javascript_dialog_type.h" | 45 #include "content/public/common/javascript_dialog_type.h" |
| 46 #include "content/public/common/previews_state.h" | 46 #include "content/public/common/previews_state.h" |
| 47 #include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h" |
| 47 #include "media/mojo/interfaces/interface_factory.mojom.h" | 48 #include "media/mojo/interfaces/interface_factory.mojom.h" |
| 48 #include "mojo/public/cpp/bindings/binding_set.h" | 49 #include "mojo/public/cpp/bindings/binding_set.h" |
| 49 #include "mojo/public/cpp/system/data_pipe.h" | 50 #include "mojo/public/cpp/system/data_pipe.h" |
| 50 #include "net/http/http_response_headers.h" | 51 #include "net/http/http_response_headers.h" |
| 51 #include "third_party/WebKit/public/platform/WebFocusType.h" | 52 #include "third_party/WebKit/public/platform/WebFocusType.h" |
| 52 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 53 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
| 54 #include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.moj
om.h" |
| 53 #include "third_party/WebKit/public/web/WebTextDirection.h" | 55 #include "third_party/WebKit/public/web/WebTextDirection.h" |
| 54 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 56 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
| 55 #include "ui/accessibility/ax_node_data.h" | 57 #include "ui/accessibility/ax_node_data.h" |
| 56 #include "ui/base/mojo/window_open_disposition.mojom.h" | 58 #include "ui/base/mojo/window_open_disposition.mojom.h" |
| 57 #include "ui/base/page_transition_types.h" | 59 #include "ui/base/page_transition_types.h" |
| 58 | 60 |
| 59 class GURL; | 61 class GURL; |
| 60 struct AccessibilityHostMsg_EventParams; | 62 struct AccessibilityHostMsg_EventParams; |
| 61 struct AccessibilityHostMsg_FindInPageResultParams; | 63 struct AccessibilityHostMsg_FindInPageResultParams; |
| 62 struct AccessibilityHostMsg_LocationChangeParams; | 64 struct AccessibilityHostMsg_LocationChangeParams; |
| 63 struct FrameHostMsg_DidCommitProvisionalLoad_Params; | 65 struct FrameHostMsg_DidCommitProvisionalLoad_Params; |
| 64 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; | 66 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; |
| 65 struct FrameHostMsg_OpenURL_Params; | 67 struct FrameHostMsg_OpenURL_Params; |
| 66 struct FrameMsg_TextTrackSettings_Params; | 68 struct FrameMsg_TextTrackSettings_Params; |
| 67 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) | 69 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU) |
| 68 struct FrameHostMsg_ShowPopup_Params; | 70 struct FrameHostMsg_ShowPopup_Params; |
| 69 #endif | 71 #endif |
| 70 | 72 |
| 71 namespace base { | 73 namespace base { |
| 72 class ListValue; | 74 class ListValue; |
| 73 } | 75 } |
| 74 | 76 |
| 75 namespace blink { | |
| 76 namespace mojom { | |
| 77 class WebBluetoothService; | |
| 78 } | |
| 79 } | |
| 80 | |
| 81 namespace gfx { | 77 namespace gfx { |
| 82 class Range; | 78 class Range; |
| 83 } | 79 } |
| 84 | 80 |
| 85 namespace content { | 81 namespace content { |
| 86 class AssociatedInterfaceProviderImpl; | 82 class AssociatedInterfaceProviderImpl; |
| 87 class AssociatedInterfaceRegistryImpl; | 83 class AssociatedInterfaceRegistryImpl; |
| 88 class FeaturePolicy; | 84 class FeaturePolicy; |
| 89 class FrameTree; | 85 class FrameTree; |
| 90 class FrameTreeNode; | 86 class FrameTreeNode; |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 // Returns the child FrameTreeNode if |child_frame_routing_id| is an | 892 // Returns the child FrameTreeNode if |child_frame_routing_id| is an |
| 897 // immediate child of this FrameTreeNode. |child_frame_routing_id| is | 893 // immediate child of this FrameTreeNode. |child_frame_routing_id| is |
| 898 // considered untrusted, so the renderer process is killed if it refers to a | 894 // considered untrusted, so the renderer process is killed if it refers to a |
| 899 // FrameTreeNode that is not a child of this node. | 895 // FrameTreeNode that is not a child of this node. |
| 900 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, | 896 FrameTreeNode* FindAndVerifyChild(int32_t child_frame_routing_id, |
| 901 bad_message::BadMessageReason reason); | 897 bad_message::BadMessageReason reason); |
| 902 | 898 |
| 903 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer | 899 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer |
| 904 // to it. | 900 // to it. |
| 905 WebBluetoothServiceImpl* CreateWebBluetoothService( | 901 WebBluetoothServiceImpl* CreateWebBluetoothService( |
| 906 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 902 const service_manager::BindSourceInfo& source_info, |
| 903 blink::mojom::WebBluetoothServiceRequest request); |
| 907 | 904 |
| 908 // Deletes the Web Bluetooth Service owned by the frame. | 905 // Deletes the Web Bluetooth Service owned by the frame. |
| 909 void DeleteWebBluetoothService( | 906 void DeleteWebBluetoothService( |
| 910 WebBluetoothServiceImpl* web_bluetooth_service); | 907 WebBluetoothServiceImpl* web_bluetooth_service); |
| 911 | 908 |
| 912 void BindMediaInterfaceFactoryRequest( | 909 void BindMediaInterfaceFactoryRequest( |
| 913 const service_manager::BindSourceInfo& source_info, | 910 const service_manager::BindSourceInfo& source_info, |
| 914 media::mojom::InterfaceFactoryRequest request); | 911 media::mojom::InterfaceFactoryRequest request); |
| 915 | 912 |
| 916 // Callback for connection error on the media::mojom::InterfaceFactory client. | 913 // Callback for connection error on the media::mojom::InterfaceFactory client. |
| 917 void OnMediaInterfaceFactoryConnectionError(); | 914 void OnMediaInterfaceFactoryConnectionError(); |
| 918 | 915 |
| 916 void BindWakeLockServiceRequest( |
| 917 const service_manager::BindSourceInfo& source_info, |
| 918 device::mojom::WakeLockServiceRequest request); |
| 919 |
| 919 // service_manager::mojom::InterfaceProvider: | 920 // service_manager::mojom::InterfaceProvider: |
| 920 void GetInterface(const std::string& interface_name, | 921 void GetInterface(const std::string& interface_name, |
| 921 mojo::ScopedMessagePipeHandle interface_pipe) override; | 922 mojo::ScopedMessagePipeHandle interface_pipe) override; |
| 922 | 923 |
| 923 // Allows tests to disable the swapout event timer to simulate bugs that | 924 // Allows tests to disable the swapout event timer to simulate bugs that |
| 924 // happen before it fires (to avoid flakiness). | 925 // happen before it fires (to avoid flakiness). |
| 925 void DisableSwapOutTimerForTesting(); | 926 void DisableSwapOutTimerForTesting(); |
| 926 | 927 |
| 927 void OnRendererConnect(const service_manager::BindSourceInfo& local_info, | 928 void OnRendererConnect(const service_manager::BindSourceInfo& local_info, |
| 928 const service_manager::BindSourceInfo& remote_info); | 929 const service_manager::BindSourceInfo& remote_info); |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 | 1218 |
| 1218 // NOTE: This must be the last member. | 1219 // NOTE: This must be the last member. |
| 1219 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1220 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1220 | 1221 |
| 1221 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1222 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1222 }; | 1223 }; |
| 1223 | 1224 |
| 1224 } // namespace content | 1225 } // namespace content |
| 1225 | 1226 |
| 1226 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1227 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |