| 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 <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 RenderProcessHost* GetProcess() override; | 121 RenderProcessHost* GetProcess() override; |
| 122 RenderFrameHost* GetParent() override; | 122 RenderFrameHost* GetParent() override; |
| 123 const std::string& GetFrameName() override; | 123 const std::string& GetFrameName() override; |
| 124 bool IsCrossProcessSubframe() override; | 124 bool IsCrossProcessSubframe() override; |
| 125 GURL GetLastCommittedURL() override; | 125 GURL GetLastCommittedURL() override; |
| 126 gfx::NativeView GetNativeView() override; | 126 gfx::NativeView GetNativeView() override; |
| 127 void ExecuteJavaScript(const base::string16& javascript) override; | 127 void ExecuteJavaScript(const base::string16& javascript) override; |
| 128 void ExecuteJavaScript(const base::string16& javascript, | 128 void ExecuteJavaScript(const base::string16& javascript, |
| 129 const JavaScriptResultCallback& callback) override; | 129 const JavaScriptResultCallback& callback) override; |
| 130 void ExecuteJavaScriptForTests(const base::string16& javascript) override; | 130 void ExecuteJavaScriptForTests(const base::string16& javascript) override; |
| 131 void ActivateFindInPageResultForAccessibility(int request_id) override; |
| 131 RenderViewHost* GetRenderViewHost() override; | 132 RenderViewHost* GetRenderViewHost() override; |
| 132 ServiceRegistry* GetServiceRegistry() override; | 133 ServiceRegistry* GetServiceRegistry() override; |
| 133 void ActivateFindInPageResultForAccessibility(int request_id) override; | 134 bool IsFocused() const override; |
| 134 | 135 |
| 135 // IPC::Sender | 136 // IPC::Sender |
| 136 bool Send(IPC::Message* msg) override; | 137 bool Send(IPC::Message* msg) override; |
| 137 | 138 |
| 138 // IPC::Listener | 139 // IPC::Listener |
| 139 bool OnMessageReceived(const IPC::Message& msg) override; | 140 bool OnMessageReceived(const IPC::Message& msg) override; |
| 140 | 141 |
| 141 // BrowserAccessibilityDelegate | 142 // BrowserAccessibilityDelegate |
| 142 void AccessibilitySetFocus(int acc_obj_id) override; | 143 void AccessibilitySetFocus(int acc_obj_id) override; |
| 143 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 144 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 int routing_id() const { return routing_id_; } | 189 int routing_id() const { return routing_id_; } |
| 189 void OnCreateChildFrame(int new_routing_id, | 190 void OnCreateChildFrame(int new_routing_id, |
| 190 const std::string& frame_name, | 191 const std::string& frame_name, |
| 191 SandboxFlags sandbox_flags); | 192 SandboxFlags sandbox_flags); |
| 192 | 193 |
| 193 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 194 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
| 194 RenderFrameHostDelegate* delegate() { return delegate_; } | 195 RenderFrameHostDelegate* delegate() { return delegate_; } |
| 195 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } | 196 FrameTreeNode* frame_tree_node() { return frame_tree_node_; } |
| 196 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in | 197 // TODO(nasko): The RenderWidgetHost will be owned by RenderFrameHost in |
| 197 // the future, so update this accessor to return the right pointer. | 198 // the future, so update this accessor to return the right pointer. |
| 198 RenderWidgetHostImpl* GetRenderWidgetHost(); | 199 RenderWidgetHostImpl* GetRenderWidgetHost() const; |
| 199 | 200 |
| 200 // This function is called when this is a swapped out RenderFrameHost that | 201 // This function is called when this is a swapped out RenderFrameHost that |
| 201 // lives in the same process as the parent frame. The | 202 // lives in the same process as the parent frame. The |
| 202 // |cross_process_frame_connector| allows the non-swapped-out | 203 // |cross_process_frame_connector| allows the non-swapped-out |
| 203 // RenderFrameHost for a frame to communicate with the parent process | 204 // RenderFrameHost for a frame to communicate with the parent process |
| 204 // so that it may composite drawing data. | 205 // so that it may composite drawing data. |
| 205 // | 206 // |
| 206 // Ownership is not transfered. | 207 // Ownership is not transfered. |
| 207 void set_cross_process_frame_connector( | 208 void set_cross_process_frame_connector( |
| 208 CrossProcessFrameConnector* cross_process_frame_connector) { | 209 CrossProcessFrameConnector* cross_process_frame_connector) { |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 | 628 |
| 628 // NOTE: This must be the last member. | 629 // NOTE: This must be the last member. |
| 629 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 630 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 630 | 631 |
| 631 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 632 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 632 }; | 633 }; |
| 633 | 634 |
| 634 } // namespace content | 635 } // namespace content |
| 635 | 636 |
| 636 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 637 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |