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

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: Removed callback from RenderFrameHost destructor 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 service_manager::InterfaceProvider* GetRemoteInterfaces() override; 159 service_manager::InterfaceProvider* GetRemoteInterfaces() override;
160 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; 160 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override;
161 blink::WebPageVisibilityState GetVisibilityState() override; 161 blink::WebPageVisibilityState GetVisibilityState() override;
162 bool IsRenderFrameLive() override; 162 bool IsRenderFrameLive() override;
163 int GetProxyCount() override; 163 int GetProxyCount() override;
164 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, 164 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files,
165 FileChooserParams::Mode permissions) override; 165 FileChooserParams::Mode permissions) override;
166 void RequestTextSurroundingSelection( 166 void RequestTextSurroundingSelection(
167 const TextSurroundingSelectionCallback& callback, 167 const TextSurroundingSelectionCallback& callback,
168 int max_length) override; 168 int max_length) override;
169 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override;
169 170
170 // mojom::FrameHost 171 // mojom::FrameHost
171 void GetInterfaceProvider( 172 void GetInterfaceProvider(
172 service_manager::mojom::InterfaceProviderRequest interfaces) override; 173 service_manager::mojom::InterfaceProviderRequest interfaces) override;
173 174
174 // IPC::Sender 175 // IPC::Sender
175 bool Send(IPC::Message* msg) override; 176 bool Send(IPC::Message* msg) override;
176 177
177 // IPC::Listener 178 // IPC::Listener
178 bool OnMessageReceived(const IPC::Message& msg) override; 179 bool OnMessageReceived(const IPC::Message& msg) override;
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 const GURL& frame_url, 655 const GURL& frame_url,
655 JavaScriptMessageType type, 656 JavaScriptMessageType type,
656 IPC::Message* reply_msg); 657 IPC::Message* reply_msg);
657 void OnRunBeforeUnloadConfirm(const GURL& frame_url, 658 void OnRunBeforeUnloadConfirm(const GURL& frame_url,
658 bool is_reload, 659 bool is_reload,
659 IPC::Message* reply_msg); 660 IPC::Message* reply_msg);
660 void OnRunFileChooser(const FileChooserParams& params); 661 void OnRunFileChooser(const FileChooserParams& params);
661 void OnTextSurroundingSelectionResponse(const base::string16& content, 662 void OnTextSurroundingSelectionResponse(const base::string16& content,
662 uint32_t start_offset, 663 uint32_t start_offset,
663 uint32_t end_offset); 664 uint32_t end_offset);
665 void OnFocusedFormFieldDataResponse(int request_id,
666 const FormFieldData& field_data);
664 void OnDidAccessInitialDocument(); 667 void OnDidAccessInitialDocument();
665 void OnDidChangeOpener(int32_t opener_routing_id); 668 void OnDidChangeOpener(int32_t opener_routing_id);
666 void OnDidChangeName(const std::string& name, const std::string& unique_name); 669 void OnDidChangeName(const std::string& name, const std::string& unique_name);
667 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); 670 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header);
668 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); 671 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy);
669 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); 672 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin);
670 void OnDidChangeSandboxFlags(int32_t frame_routing_id, 673 void OnDidChangeSandboxFlags(int32_t frame_routing_id,
671 blink::WebSandboxFlags flags); 674 blink::WebSandboxFlags flags);
672 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, 675 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id,
673 const FrameOwnerProperties& properties); 676 const FrameOwnerProperties& properties);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 // The most recent non-error URL to commit in this frame. Remove this in 877 // 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 878 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process
876 // transfers work for net errors. See https://crbug.com/588314. 879 // transfers work for net errors. See https://crbug.com/588314.
877 GURL last_successful_url_; 880 GURL last_successful_url_;
878 881
879 // The mapping of pending JavaScript calls created by 882 // The mapping of pending JavaScript calls created by
880 // ExecuteJavaScript and their corresponding callbacks. 883 // ExecuteJavaScript and their corresponding callbacks.
881 std::map<int, JavaScriptResultCallback> javascript_callbacks_; 884 std::map<int, JavaScriptResultCallback> javascript_callbacks_;
882 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; 885 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_;
883 886
887 // Callbacks for getting text input info.
888 std::map<int, FormFieldDataCallback> form_field_data_callbacks_;
889
884 // RenderFrameHosts that need management of the rendering and input events 890 // RenderFrameHosts that need management of the rendering and input events
885 // for their frame subtrees require RenderWidgetHosts. This typically 891 // for their frame subtrees require RenderWidgetHosts. This typically
886 // means frames that are rendered in different processes from their parent 892 // means frames that are rendered in different processes from their parent
887 // frames. 893 // frames.
888 // TODO(kenrb): Later this will also be used on the top-level frame, when 894 // TODO(kenrb): Later this will also be used on the top-level frame, when
889 // RenderFrameHost owns its RenderViewHost. 895 // RenderFrameHost owns its RenderViewHost.
890 RenderWidgetHostImpl* render_widget_host_; 896 RenderWidgetHostImpl* render_widget_host_;
891 897
892 int routing_id_; 898 int routing_id_;
893 899
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 remote_associated_interfaces_; 1070 remote_associated_interfaces_;
1065 // NOTE: This must be the last member. 1071 // NOTE: This must be the last member.
1066 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; 1072 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_;
1067 1073
1068 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 1074 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
1069 }; 1075 };
1070 1076
1071 } // namespace content 1077 } // namespace content
1072 1078
1073 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 1079 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698