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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 GURL GetLastCommittedURL() override; | 131 GURL GetLastCommittedURL() override; |
132 gfx::NativeView GetNativeView() override; | 132 gfx::NativeView GetNativeView() override; |
133 void ExecuteJavaScript(const base::string16& javascript) override; | 133 void ExecuteJavaScript(const base::string16& javascript) override; |
134 void ExecuteJavaScript(const base::string16& javascript, | 134 void ExecuteJavaScript(const base::string16& javascript, |
135 const JavaScriptResultCallback& callback) override; | 135 const JavaScriptResultCallback& callback) override; |
136 void ExecuteJavaScriptForTests(const base::string16& javascript) override; | 136 void ExecuteJavaScriptForTests(const base::string16& javascript) override; |
137 void ActivateFindInPageResultForAccessibility(int request_id) override; | 137 void ActivateFindInPageResultForAccessibility(int request_id) override; |
138 RenderViewHost* GetRenderViewHost() override; | 138 RenderViewHost* GetRenderViewHost() override; |
139 ServiceRegistry* GetServiceRegistry() override; | 139 ServiceRegistry* GetServiceRegistry() override; |
140 blink::WebPageVisibilityState GetVisibilityState() override; | 140 blink::WebPageVisibilityState GetVisibilityState() override; |
| 141 void FlushVisualState( |
| 142 const FlushVisualStateResultCallback& callback) override; |
141 | 143 |
142 // IPC::Sender | 144 // IPC::Sender |
143 bool Send(IPC::Message* msg) override; | 145 bool Send(IPC::Message* msg) override; |
144 | 146 |
145 // IPC::Listener | 147 // IPC::Listener |
146 bool OnMessageReceived(const IPC::Message& msg) override; | 148 bool OnMessageReceived(const IPC::Message& msg) override; |
147 | 149 |
148 // BrowserAccessibilityDelegate | 150 // BrowserAccessibilityDelegate |
149 void AccessibilitySetFocus(int acc_obj_id) override; | 151 void AccessibilitySetFocus(int acc_obj_id) override; |
150 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 152 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 const base::string16& error_description); | 456 const base::string16& error_description); |
455 void OnDidCommitProvisionalLoad(const IPC::Message& msg); | 457 void OnDidCommitProvisionalLoad(const IPC::Message& msg); |
456 void OnDidDropNavigation(); | 458 void OnDidDropNavigation(); |
457 void OnBeforeUnloadACK( | 459 void OnBeforeUnloadACK( |
458 bool proceed, | 460 bool proceed, |
459 const base::TimeTicks& renderer_before_unload_start_time, | 461 const base::TimeTicks& renderer_before_unload_start_time, |
460 const base::TimeTicks& renderer_before_unload_end_time); | 462 const base::TimeTicks& renderer_before_unload_end_time); |
461 void OnSwapOutACK(); | 463 void OnSwapOutACK(); |
462 void OnContextMenu(const ContextMenuParams& params); | 464 void OnContextMenu(const ContextMenuParams& params); |
463 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 465 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
| 466 void OnFlushVisualStateResponse(uint64 id); |
464 void OnRunJavaScriptMessage(const base::string16& message, | 467 void OnRunJavaScriptMessage(const base::string16& message, |
465 const base::string16& default_prompt, | 468 const base::string16& default_prompt, |
466 const GURL& frame_url, | 469 const GURL& frame_url, |
467 JavaScriptMessageType type, | 470 JavaScriptMessageType type, |
468 IPC::Message* reply_msg); | 471 IPC::Message* reply_msg); |
469 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 472 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
470 const base::string16& message, | 473 const base::string16& message, |
471 bool is_reload, | 474 bool is_reload, |
472 IPC::Message* reply_msg); | 475 IPC::Message* reply_msg); |
473 void OnTextSurroundingSelectionResponse(const base::string16& content, | 476 void OnTextSurroundingSelectionResponse(const base::string16& content, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // Allows this RenderFrameHost to add and remove nodes in response to | 573 // Allows this RenderFrameHost to add and remove nodes in response to |
571 // messages from the renderer requesting DOM manipulation. | 574 // messages from the renderer requesting DOM manipulation. |
572 FrameTree* frame_tree_; | 575 FrameTree* frame_tree_; |
573 | 576 |
574 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. | 577 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. |
575 FrameTreeNode* frame_tree_node_; | 578 FrameTreeNode* frame_tree_node_; |
576 | 579 |
577 // The mapping of pending JavaScript calls created by | 580 // The mapping of pending JavaScript calls created by |
578 // ExecuteJavaScript and their corresponding callbacks. | 581 // ExecuteJavaScript and their corresponding callbacks. |
579 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 582 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
| 583 std::map<uint64, FlushVisualStateResultCallback> |
| 584 flush_visual_state_callbacks_; |
580 | 585 |
581 // RenderFrameHosts that need management of the rendering and input events | 586 // RenderFrameHosts that need management of the rendering and input events |
582 // for their frame subtrees require RenderWidgetHosts. This typically | 587 // for their frame subtrees require RenderWidgetHosts. This typically |
583 // means frames that are rendered in different processes from their parent | 588 // means frames that are rendered in different processes from their parent |
584 // frames. | 589 // frames. |
585 // TODO(kenrb): Later this will also be used on the top-level frame, when | 590 // TODO(kenrb): Later this will also be used on the top-level frame, when |
586 // RenderFrameHost owns its RenderViewHost. | 591 // RenderFrameHost owns its RenderViewHost. |
587 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; | 592 scoped_ptr<RenderWidgetHostImpl> render_widget_host_; |
588 | 593 |
589 int routing_id_; | 594 int routing_id_; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 | 672 |
668 // NOTE: This must be the last member. | 673 // NOTE: This must be the last member. |
669 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 674 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
670 | 675 |
671 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 676 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
672 }; | 677 }; |
673 | 678 |
674 } // namespace content | 679 } // namespace content |
675 | 680 |
676 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 681 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |