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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 blink::WebPageVisibilityState GetVisibilityState() override; | 163 blink::WebPageVisibilityState GetVisibilityState() override; |
164 bool IsRenderFrameLive() override; | 164 bool IsRenderFrameLive() override; |
165 int GetProxyCount() override; | 165 int GetProxyCount() override; |
166 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, | 166 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, |
167 FileChooserParams::Mode permissions) override; | 167 FileChooserParams::Mode permissions) override; |
168 bool HasSelection() override; | 168 bool HasSelection() override; |
169 void RequestTextSurroundingSelection( | 169 void RequestTextSurroundingSelection( |
170 const TextSurroundingSelectionCallback& callback, | 170 const TextSurroundingSelectionCallback& callback, |
171 int max_length) override; | 171 int max_length) override; |
172 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override; | 172 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override; |
| 173 void AllowBindings(int binding_flags) override; |
| 174 int GetEnabledBindings() const override; |
173 | 175 |
174 // mojom::FrameHost | 176 // mojom::FrameHost |
175 void GetInterfaceProvider( | 177 void GetInterfaceProvider( |
176 service_manager::mojom::InterfaceProviderRequest interfaces) override; | 178 service_manager::mojom::InterfaceProviderRequest interfaces) override; |
177 | 179 |
178 // IPC::Sender | 180 // IPC::Sender |
179 bool Send(IPC::Message* msg) override; | 181 bool Send(IPC::Message* msg) override; |
180 | 182 |
181 // IPC::Listener | 183 // IPC::Listener |
182 bool OnMessageReceived(const IPC::Message& msg) override; | 184 bool OnMessageReceived(const IPC::Message& msg) override; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Ownership is not transfered. | 301 // Ownership is not transfered. |
300 void set_cross_process_frame_connector( | 302 void set_cross_process_frame_connector( |
301 CrossProcessFrameConnector* cross_process_frame_connector) { | 303 CrossProcessFrameConnector* cross_process_frame_connector) { |
302 cross_process_frame_connector_ = cross_process_frame_connector; | 304 cross_process_frame_connector_ = cross_process_frame_connector; |
303 } | 305 } |
304 | 306 |
305 void set_render_frame_proxy_host(RenderFrameProxyHost* proxy) { | 307 void set_render_frame_proxy_host(RenderFrameProxyHost* proxy) { |
306 render_frame_proxy_host_ = proxy; | 308 render_frame_proxy_host_ = proxy; |
307 } | 309 } |
308 | 310 |
309 // Returns a bitwise OR of bindings types that have been enabled for this | |
310 // RenderFrameHostImpl's RenderView. See BindingsPolicy for details. | |
311 // TODO(creis): Make bindings frame-specific, to support cases like <webview>. | |
312 int GetEnabledBindings(); | |
313 | |
314 // The unique ID of the latest NavigationEntry that this RenderFrameHost is | 311 // The unique ID of the latest NavigationEntry that this RenderFrameHost is |
315 // showing. This may change even when this frame hasn't committed a page, | 312 // showing. This may change even when this frame hasn't committed a page, |
316 // such as for a new subframe navigation in a different frame. | 313 // such as for a new subframe navigation in a different frame. |
317 int nav_entry_id() const { return nav_entry_id_; } | 314 int nav_entry_id() const { return nav_entry_id_; } |
318 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } | 315 void set_nav_entry_id(int nav_entry_id) { nav_entry_id_ = nav_entry_id; } |
319 | 316 |
320 // A NavigationHandle for the pending navigation in this frame, if any. This | 317 // A NavigationHandle for the pending navigation in this frame, if any. This |
321 // is cleared when the navigation commits. | 318 // is cleared when the navigation commits. |
322 NavigationHandleImpl* navigation_handle() const { | 319 NavigationHandleImpl* navigation_handle() const { |
323 return navigation_handle_.get(); | 320 return navigation_handle_.get(); |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 | 1078 |
1082 // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards | 1079 // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards |
1083 // media::mojom::InterfaceFactory calls to the remote "media" service. | 1080 // media::mojom::InterfaceFactory calls to the remote "media" service. |
1084 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_; | 1081 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_; |
1085 | 1082 |
1086 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> | 1083 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> |
1087 media_registries_; | 1084 media_registries_; |
1088 | 1085 |
1089 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1086 std::unique_ptr<AssociatedInterfaceProviderImpl> |
1090 remote_associated_interfaces_; | 1087 remote_associated_interfaces_; |
| 1088 |
| 1089 // A bitwise OR of bindings types that have been enabled for this RenderFrame. |
| 1090 // See BindingsPolicy for details. |
| 1091 int enabled_bindings_ = 0; |
| 1092 |
1091 // NOTE: This must be the last member. | 1093 // NOTE: This must be the last member. |
1092 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1094 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1093 | 1095 |
1094 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1096 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1095 }; | 1097 }; |
1096 | 1098 |
1097 } // namespace content | 1099 } // namespace content |
1098 | 1100 |
1099 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1101 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |