Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: content/browser/frame_host/render_frame_host_impl.h

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Added test Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 158 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
159 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; 159 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override;
160 blink::WebPageVisibilityState GetVisibilityState() override; 160 blink::WebPageVisibilityState GetVisibilityState() override;
161 bool IsRenderFrameLive() override; 161 bool IsRenderFrameLive() override;
162 int GetProxyCount() override; 162 int GetProxyCount() override;
163 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 163 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
164 FileChooserParams::Mode permissions) override; 164 FileChooserParams::Mode permissions) override;
165 void RequestTextSurroundingSelection( 165 void RequestTextSurroundingSelection(
166 const TextSurroundingSelectionCallback& callback, 166 const TextSurroundingSelectionCallback& callback,
167 int max_length) override; 167 int max_length) override;
168 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override;
168 169
169 // mojom::FrameHost 170 // mojom::FrameHost
170 void GetInterfaceProvider( 171 void GetInterfaceProvider(
171 service_manager::mojom::InterfaceProviderRequest interfaces) override; 172 service_manager::mojom::InterfaceProviderRequest interfaces) override;
172 173
173 // IPC::Sender 174 // IPC::Sender
174 bool Send(IPC::Message* msg) override; 175 bool Send(IPC::Message* msg) override;
175 176
176 // IPC::Listener 177 // IPC::Listener
177 bool OnMessageReceived(const IPC::Message& msg) override; 178 bool OnMessageReceived(const IPC::Message& msg) override;
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 #if defined(OS_MACOSX) 499 #if defined(OS_MACOSX)
499 // Select popup menu related methods (for external popup menus). 500 // Select popup menu related methods (for external popup menus).
500 void DidSelectPopupMenuItem(int selected_index); 501 void DidSelectPopupMenuItem(int selected_index);
501 void DidCancelPopupMenu(); 502 void DidCancelPopupMenu();
502 #else 503 #else
503 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices); 504 void DidSelectPopupMenuItems(const std::vector<int>& selected_indices);
504 void DidCancelPopupMenu(); 505 void DidCancelPopupMenu();
505 #endif 506 #endif
506 #endif 507 #endif
507 508
509 // This method contains response for the focused field info request.
510 void OnFocusedFormFieldDataResponse(int request_id,
Charlie Reis 2016/11/11 22:20:46 nit: This should be declared with the other IPC ha
shaktisahu 2016/11/15 05:44:54 Done.
511 const FormFieldData& field_data);
512
508 // PlzNavigate: Indicates that a navigation is ready to commit and can be 513 // PlzNavigate: Indicates that a navigation is ready to commit and can be
509 // handled by this RenderFrame. 514 // handled by this RenderFrame.
510 void CommitNavigation(ResourceResponse* response, 515 void CommitNavigation(ResourceResponse* response,
511 std::unique_ptr<StreamHandle> body, 516 std::unique_ptr<StreamHandle> body,
512 const CommonNavigationParams& common_params, 517 const CommonNavigationParams& common_params,
513 const RequestNavigationParams& request_params, 518 const RequestNavigationParams& request_params,
514 bool is_view_source); 519 bool is_view_source);
515 520
516 // PlzNavigate 521 // PlzNavigate
517 // Indicates that a navigation failed and that this RenderFrame should display 522 // Indicates that a navigation failed and that this RenderFrame should display
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 // The most recent non-error URL to commit in this frame. Remove this in 873 // The most recent non-error URL to commit in this frame. Remove this in
869 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process 874 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process
870 // transfers work for net errors. See https://crbug.com/588314. 875 // transfers work for net errors. See https://crbug.com/588314.
871 GURL last_successful_url_; 876 GURL last_successful_url_;
872 877
873 // The mapping of pending JavaScript calls created by 878 // The mapping of pending JavaScript calls created by
874 // ExecuteJavaScript and their corresponding callbacks. 879 // ExecuteJavaScript and their corresponding callbacks.
875 std::map<int, JavaScriptResultCallback> javascript_callbacks_; 880 std::map<int, JavaScriptResultCallback> javascript_callbacks_;
876 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; 881 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_;
877 882
883 // Callbacks for getting text input info.
884 std::map<int, FormFieldDataCallback> form_field_data_callbacks_;
Charlie Reis 2016/11/11 22:20:46 As dtrainor@ noted, there's a risk that these will
shaktisahu 2016/11/15 05:44:54 Done.
885
878 // RenderFrameHosts that need management of the rendering and input events 886 // RenderFrameHosts that need management of the rendering and input events
879 // for their frame subtrees require RenderWidgetHosts. This typically 887 // for their frame subtrees require RenderWidgetHosts. This typically
880 // means frames that are rendered in different processes from their parent 888 // means frames that are rendered in different processes from their parent
881 // frames. 889 // frames.
882 // TODO(kenrb): Later this will also be used on the top-level frame, when 890 // TODO(kenrb): Later this will also be used on the top-level frame, when
883 // RenderFrameHost owns its RenderViewHost. 891 // RenderFrameHost owns its RenderViewHost.
884 RenderWidgetHostImpl* render_widget_host_; 892 RenderWidgetHostImpl* render_widget_host_;
885 893
886 int routing_id_; 894 int routing_id_;
887 895
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 remote_associated_interfaces_; 1066 remote_associated_interfaces_;
1059 // NOTE: This must be the last member. 1067 // NOTE: This must be the last member.
1060 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1068 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1061 1069
1062 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1070 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1063 }; 1071 };
1064 1072
1065 } // namespace content 1073 } // namespace content
1066 1074
1067 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1075 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698