| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool HasSelection() override; | 166 bool HasSelection() override; |
| 167 void RequestTextSurroundingSelection( | 167 void RequestTextSurroundingSelection( |
| 168 const TextSurroundingSelectionCallback& callback, | 168 const TextSurroundingSelectionCallback& callback, |
| 169 int max_length) override; | 169 int max_length) override; |
| 170 void RequestFocusedFormFieldData(FormFieldDataCallback& callback) override; |
| 170 | 171 |
| 171 // mojom::FrameHost | 172 // mojom::FrameHost |
| 172 void GetInterfaceProvider( | 173 void GetInterfaceProvider( |
| 173 service_manager::mojom::InterfaceProviderRequest interfaces) override; | 174 service_manager::mojom::InterfaceProviderRequest interfaces) override; |
| 174 | 175 |
| 175 // IPC::Sender | 176 // IPC::Sender |
| 176 bool Send(IPC::Message* msg) override; | 177 bool Send(IPC::Message* msg) override; |
| 177 | 178 |
| 178 // IPC::Listener | 179 // IPC::Listener |
| 179 bool OnMessageReceived(const IPC::Message& msg) override; | 180 bool OnMessageReceived(const IPC::Message& msg) override; |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 const GURL& frame_url, | 652 const GURL& frame_url, |
| 652 JavaScriptMessageType type, | 653 JavaScriptMessageType type, |
| 653 IPC::Message* reply_msg); | 654 IPC::Message* reply_msg); |
| 654 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 655 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
| 655 bool is_reload, | 656 bool is_reload, |
| 656 IPC::Message* reply_msg); | 657 IPC::Message* reply_msg); |
| 657 void OnRunFileChooser(const FileChooserParams& params); | 658 void OnRunFileChooser(const FileChooserParams& params); |
| 658 void OnTextSurroundingSelectionResponse(const base::string16& content, | 659 void OnTextSurroundingSelectionResponse(const base::string16& content, |
| 659 uint32_t start_offset, | 660 uint32_t start_offset, |
| 660 uint32_t end_offset); | 661 uint32_t end_offset); |
| 662 void OnFocusedFormFieldDataResponse(int request_id, |
| 663 const FormFieldData& field_data); |
| 661 void OnDidAccessInitialDocument(); | 664 void OnDidAccessInitialDocument(); |
| 662 void OnDidChangeOpener(int32_t opener_routing_id); | 665 void OnDidChangeOpener(int32_t opener_routing_id); |
| 663 void OnDidChangeName(const std::string& name, const std::string& unique_name); | 666 void OnDidChangeName(const std::string& name, const std::string& unique_name); |
| 664 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); | 667 void OnDidAddContentSecurityPolicy(const ContentSecurityPolicyHeader& header); |
| 665 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); | 668 void OnEnforceInsecureRequestPolicy(blink::WebInsecureRequestPolicy policy); |
| 666 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); | 669 void OnUpdateToUniqueOrigin(bool is_potentially_trustworthy_unique_origin); |
| 667 void OnDidChangeSandboxFlags(int32_t frame_routing_id, | 670 void OnDidChangeSandboxFlags(int32_t frame_routing_id, |
| 668 blink::WebSandboxFlags flags); | 671 blink::WebSandboxFlags flags); |
| 669 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, | 672 void OnDidChangeFrameOwnerProperties(int32_t frame_routing_id, |
| 670 const FrameOwnerProperties& properties); | 673 const FrameOwnerProperties& properties); |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 // The most recent non-error URL to commit in this frame. Remove this in | 874 // The most recent non-error URL to commit in this frame. Remove this in |
| 872 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process | 875 // favor of GetLastCommittedURL() once PlzNavigate is enabled or cross-process |
| 873 // transfers work for net errors. See https://crbug.com/588314. | 876 // transfers work for net errors. See https://crbug.com/588314. |
| 874 GURL last_successful_url_; | 877 GURL last_successful_url_; |
| 875 | 878 |
| 876 // The mapping of pending JavaScript calls created by | 879 // The mapping of pending JavaScript calls created by |
| 877 // ExecuteJavaScript and their corresponding callbacks. | 880 // ExecuteJavaScript and their corresponding callbacks. |
| 878 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 881 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
| 879 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; | 882 std::map<uint64_t, VisualStateCallback> visual_state_callbacks_; |
| 880 | 883 |
| 884 // Callbacks for getting text input info. |
| 885 std::map<int, FormFieldDataCallback> form_field_data_callbacks_; |
| 886 |
| 881 // RenderFrameHosts that need management of the rendering and input events | 887 // RenderFrameHosts that need management of the rendering and input events |
| 882 // for their frame subtrees require RenderWidgetHosts. This typically | 888 // for their frame subtrees require RenderWidgetHosts. This typically |
| 883 // means frames that are rendered in different processes from their parent | 889 // means frames that are rendered in different processes from their parent |
| 884 // frames. | 890 // frames. |
| 885 // TODO(kenrb): Later this will also be used on the top-level frame, when | 891 // TODO(kenrb): Later this will also be used on the top-level frame, when |
| 886 // RenderFrameHost owns its RenderViewHost. | 892 // RenderFrameHost owns its RenderViewHost. |
| 887 RenderWidgetHostImpl* render_widget_host_; | 893 RenderWidgetHostImpl* render_widget_host_; |
| 888 | 894 |
| 889 int routing_id_; | 895 int routing_id_; |
| 890 | 896 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |