| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 service_manager::InterfaceProvider* GetRemoteInterfaces() override; | 161 service_manager::InterfaceProvider* GetRemoteInterfaces() override; |
| 162 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; | 162 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; |
| 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 void RequestTextSurroundingSelection( | 168 void RequestTextSurroundingSelection( |
| 169 const TextSurroundingSelectionCallback& callback, | 169 const TextSurroundingSelectionCallback& callback, |
| 170 int max_length) override; | 170 int max_length) override; |
| 171 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override; |
| 171 | 172 |
| 172 // mojom::FrameHost | 173 // mojom::FrameHost |
| 173 void GetInterfaceProvider( | 174 void GetInterfaceProvider( |
| 174 service_manager::mojom::InterfaceProviderRequest interfaces) override; | 175 service_manager::mojom::InterfaceProviderRequest interfaces) override; |
| 175 | 176 |
| 176 // IPC::Sender | 177 // IPC::Sender |
| 177 bool Send(IPC::Message* msg) override; | 178 bool Send(IPC::Message* msg) override; |
| 178 | 179 |
| 179 // IPC::Listener | 180 // IPC::Listener |
| 180 bool OnMessageReceived(const IPC::Message& msg) override; | 181 bool OnMessageReceived(const IPC::Message& msg) override; |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 #if defined(OS_MACOSX) | 511 #if defined(OS_MACOSX) |
| 511 // Select popup menu related methods (for external popup menus). | 512 // Select popup menu related methods (for external popup menus). |
| 512 void DidSelectPopupMenuItem(int selected_index); | 513 void DidSelectPopupMenuItem(int selected_index); |
| 513 void DidCancelPopupMenu(); | 514 void DidCancelPopupMenu(); |
| 514 #else | 515 #else |
| 515 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); | 516 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); |
| 516 void DidCancelPopupMenu(); | 517 void DidCancelPopupMenu(); |
| 517 #endif | 518 #endif |
| 518 #endif | 519 #endif |
| 519 | 520 |
| 521 // This method contains response for the focused field info request. |
| 522 void OnFocusedFormFieldDataResponse(int request_id, |
| 523 const FormFieldData& field_data); |
| 524 |
| 520 // PlzNavigate: Indicates that a navigation is ready to commit and can be | 525 // PlzNavigate: Indicates that a navigation is ready to commit and can be |
| 521 // handled by this RenderFrame. | 526 // handled by this RenderFrame. |
| 522 void CommitNavigation(ResourceResponse* response, | 527 void CommitNavigation(ResourceResponse* response, |
| 523 std::unique_ptr<StreamHandle> body, | 528 std::unique_ptr<StreamHandle> body, |
| 524 const CommonNavigationParams& common_params, | 529 const CommonNavigationParams& common_params, |
| 525 const RequestNavigationParams& request_params, | 530 const RequestNavigationParams& request_params, |
| 526 bool is_view_source); | 531 bool is_view_source); |
| 527 | 532 |
| 528 // PlzNavigate | 533 // PlzNavigate |
| 529 // Indicates that a navigation failed and that this RenderFrame should display | 534 // Indicates that a navigation failed and that this RenderFrame should display |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 // The most recent non-error URL to commit in this frame. Remove this in | 879 // The most recent non-error URL to commit in this frame. Remove this in |
| 875 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process | 880 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process |
| 876 // transfers work for net errors. See https://crbug.com/588314. | 881 // transfers work for net errors. See https://crbug.com/588314. |
| 877 GURL last_successful_url_; | 882 GURL last_successful_url_; |
| 878 | 883 |
| 879 // The mapping of pending JavaScript calls created by | 884 // The mapping of pending JavaScript calls created by |
| 880 // ExecuteJavaScript and their corresponding callbacks. | 885 // ExecuteJavaScript and their corresponding callbacks. |
| 881 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 886 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
| 882 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; | 887 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; |
| 883 | 888 |
| 889 // Callbacks for getting text input info. |
| 890 std::map<int, FormFieldDataCallback> form_field_data_callbacks_; |
| 891 |
| 884 // RenderFrameHosts that need management of the rendering and input events | 892 // RenderFrameHosts that need management of the rendering and input events |
| 885 // for their frame subtrees require RenderWidgetHosts. This typically | 893 // for their frame subtrees require RenderWidgetHosts. This typically |
| 886 // means frames that are rendered in different processes from their parent | 894 // means frames that are rendered in different processes from their parent |
| 887 // frames. | 895 // frames. |
| 888 // TODO(kenrb): Later this will also be used on the top-level frame, when | 896 // TODO(kenrb): Later this will also be used on the top-level frame, when |
| 889 // RenderFrameHost owns its RenderViewHost. | 897 // RenderFrameHost owns its RenderViewHost. |
| 890 RenderWidgetHostImpl* render_widget_host_; | 898 RenderWidgetHostImpl* render_widget_host_; |
| 891 | 899 |
| 892 int routing_id_; | 900 int routing_id_; |
| 893 | 901 |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 remote_associated_interfaces_; | 1058 remote_associated_interfaces_; |
| 1051 // NOTE: This must be the last member. | 1059 // NOTE: This must be the last member. |
| 1052 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1060 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1053 | 1061 |
| 1054 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1062 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1055 }; | 1063 }; |
| 1056 | 1064 |
| 1057 } // namespace content | 1065 } // namespace content |
| 1058 | 1066 |
| 1059 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1067 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |