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 29 matching lines...) Expand all Loading... |
40 #include "content/common/image_downloader/image_downloader.mojom.h" | 40 #include "content/common/image_downloader/image_downloader.mojom.h" |
41 #include "content/common/navigation_params.h" | 41 #include "content/common/navigation_params.h" |
42 #include "content/public/browser/render_frame_host.h" | 42 #include "content/public/browser/render_frame_host.h" |
43 #include "content/public/common/javascript_dialog_type.h" | 43 #include "content/public/common/javascript_dialog_type.h" |
44 #include "content/public/common/previews_state.h" | 44 #include "content/public/common/previews_state.h" |
45 #include "media/mojo/interfaces/interface_factory.mojom.h" | 45 #include "media/mojo/interfaces/interface_factory.mojom.h" |
46 #include "mojo/public/cpp/bindings/binding_set.h" | 46 #include "mojo/public/cpp/bindings/binding_set.h" |
47 #include "mojo/public/cpp/system/data_pipe.h" | 47 #include "mojo/public/cpp/system/data_pipe.h" |
48 #include "net/http/http_response_headers.h" | 48 #include "net/http/http_response_headers.h" |
49 #include "services/service_manager/public/cpp/interface_factory.h" | 49 #include "services/service_manager/public/cpp/interface_factory.h" |
50 #include "services/service_manager/public/cpp/interface_registry.h" | |
51 #include "third_party/WebKit/public/platform/WebFocusType.h" | 50 #include "third_party/WebKit/public/platform/WebFocusType.h" |
52 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 51 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
53 #include "third_party/WebKit/public/web/WebTextDirection.h" | 52 #include "third_party/WebKit/public/web/WebTextDirection.h" |
54 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 53 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
55 #include "ui/accessibility/ax_node_data.h" | 54 #include "ui/accessibility/ax_node_data.h" |
56 #include "ui/base/mojo/window_open_disposition.mojom.h" | 55 #include "ui/base/mojo/window_open_disposition.mojom.h" |
57 #include "ui/base/page_transition_types.h" | 56 #include "ui/base/page_transition_types.h" |
58 | 57 |
59 class GURL; | 58 class GURL; |
60 struct AccessibilityHostMsg_EventParams; | 59 struct AccessibilityHostMsg_EventParams; |
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 std::unique_ptr<PendingNavigation> pendinging_navigate_; | 1157 std::unique_ptr<PendingNavigation> pendinging_navigate_; |
1159 | 1158 |
1160 // Callback for responding when | 1159 // Callback for responding when |
1161 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. | 1160 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. |
1162 TextSurroundingSelectionCallback text_surrounding_selection_callback_; | 1161 TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
1163 | 1162 |
1164 // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards | 1163 // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards |
1165 // media::mojom::InterfaceFactory calls to the remote "media" service. | 1164 // media::mojom::InterfaceFactory calls to the remote "media" service. |
1166 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_; | 1165 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_; |
1167 | 1166 |
1168 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> | |
1169 media_registries_; | |
1170 | |
1171 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1167 std::unique_ptr<AssociatedInterfaceProviderImpl> |
1172 remote_associated_interfaces_; | 1168 remote_associated_interfaces_; |
1173 | 1169 |
1174 // A bitwise OR of bindings types that have been enabled for this RenderFrame. | 1170 // A bitwise OR of bindings types that have been enabled for this RenderFrame. |
1175 // See BindingsPolicy for details. | 1171 // See BindingsPolicy for details. |
1176 int enabled_bindings_ = 0; | 1172 int enabled_bindings_ = 0; |
1177 | 1173 |
1178 // Tracks the feature policy which has been set on this frame. | 1174 // Tracks the feature policy which has been set on this frame. |
1179 std::unique_ptr<FeaturePolicy> feature_policy_; | 1175 std::unique_ptr<FeaturePolicy> feature_policy_; |
1180 | 1176 |
1181 #if defined(OS_ANDROID) | 1177 #if defined(OS_ANDROID) |
1182 // An InterfaceProvider for Java-implemented interfaces that are scoped to | 1178 // An InterfaceProvider for Java-implemented interfaces that are scoped to |
1183 // this RenderFrameHost. This provides access to interfaces implemented in | 1179 // this RenderFrameHost. This provides access to interfaces implemented in |
1184 // Java in the browser process to C++ code in the browser process. | 1180 // Java in the browser process to C++ code in the browser process. |
1185 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; | 1181 std::unique_ptr<service_manager::InterfaceProvider> java_interfaces_; |
1186 | 1182 |
1187 // An InterfaceRegistry that forwards interface requests from Java to the | 1183 // An InterfaceRegistry that forwards interface requests from Java to the |
1188 // RenderFrame. This provides access to interfaces implemented in the renderer | 1184 // RenderFrame. This provides access to interfaces implemented in the renderer |
1189 // to Java code in the browser process. | 1185 // to Java code in the browser process. |
1190 std::unique_ptr<service_manager::InterfaceRegistry> java_interface_registry_; | 1186 class JavaInterfaceProvider; |
| 1187 std::unique_ptr<JavaInterfaceProvider> java_interface_registry_; |
1191 #endif | 1188 #endif |
1192 | 1189 |
1193 mojo::BindingSet<service_manager::mojom::InterfaceProvider> | 1190 mojo::BindingSet<service_manager::mojom::InterfaceProvider> |
1194 interface_provider_bindings_; | 1191 interface_provider_bindings_; |
1195 | 1192 |
1196 // NOTE: This must be the last member. | 1193 // NOTE: This must be the last member. |
1197 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1194 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1198 | 1195 |
1199 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1196 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1200 }; | 1197 }; |
1201 | 1198 |
1202 } // namespace content | 1199 } // namespace content |
1203 | 1200 |
1204 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1201 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |