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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 RenderViewHost* GetRenderViewHost() override; | 131 RenderViewHost* GetRenderViewHost() override; |
132 ServiceRegistry* GetServiceRegistry() override; | 132 ServiceRegistry* GetServiceRegistry() override; |
133 void ActivateFindInPageResultForAccessibility(int request_id) override; | 133 void ActivateFindInPageResultForAccessibility(int request_id) override; |
| 134 void FlushVisualState( |
| 135 const FlushVisualStateResultCallback& callback) override; |
134 | 136 |
135 // IPC::Sender | 137 // IPC::Sender |
136 bool Send(IPC::Message* msg) override; | 138 bool Send(IPC::Message* msg) override; |
137 | 139 |
138 // IPC::Listener | 140 // IPC::Listener |
139 bool OnMessageReceived(const IPC::Message& msg) override; | 141 bool OnMessageReceived(const IPC::Message& msg) override; |
140 | 142 |
141 // BrowserAccessibilityDelegate | 143 // BrowserAccessibilityDelegate |
142 void AccessibilitySetFocus(int acc_obj_id) override; | 144 void AccessibilitySetFocus(int acc_obj_id) override; |
143 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 145 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 const base::string16& error_description); | 435 const base::string16& error_description); |
434 void OnDidCommitProvisionalLoad(const IPC::Message& msg); | 436 void OnDidCommitProvisionalLoad(const IPC::Message& msg); |
435 void OnDidDropNavigation(); | 437 void OnDidDropNavigation(); |
436 void OnBeforeUnloadACK( | 438 void OnBeforeUnloadACK( |
437 bool proceed, | 439 bool proceed, |
438 const base::TimeTicks& renderer_before_unload_start_time, | 440 const base::TimeTicks& renderer_before_unload_start_time, |
439 const base::TimeTicks& renderer_before_unload_end_time); | 441 const base::TimeTicks& renderer_before_unload_end_time); |
440 void OnSwapOutACK(); | 442 void OnSwapOutACK(); |
441 void OnContextMenu(const ContextMenuParams& params); | 443 void OnContextMenu(const ContextMenuParams& params); |
442 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 444 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
| 445 void OnFlushVisualStateResponse(int id); |
443 void OnRunJavaScriptMessage(const base::string16& message, | 446 void OnRunJavaScriptMessage(const base::string16& message, |
444 const base::string16& default_prompt, | 447 const base::string16& default_prompt, |
445 const GURL& frame_url, | 448 const GURL& frame_url, |
446 JavaScriptMessageType type, | 449 JavaScriptMessageType type, |
447 IPC::Message* reply_msg); | 450 IPC::Message* reply_msg); |
448 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 451 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
449 const base::string16& message, | 452 const base::string16& message, |
450 bool is_reload, | 453 bool is_reload, |
451 IPC::Message* reply_msg); | 454 IPC::Message* reply_msg); |
452 void OnTextSurroundingSelectionResponse(const base::string16& content, | 455 void OnTextSurroundingSelectionResponse(const base::string16& content, |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 // Allows this RenderFrameHost to add and remove nodes in response to | 541 // Allows this RenderFrameHost to add and remove nodes in response to |
539 // messages from the renderer requesting DOM manipulation. | 542 // messages from the renderer requesting DOM manipulation. |
540 FrameTree* frame_tree_; | 543 FrameTree* frame_tree_; |
541 | 544 |
542 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. | 545 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. |
543 FrameTreeNode* frame_tree_node_; | 546 FrameTreeNode* frame_tree_node_; |
544 | 547 |
545 // The mapping of pending JavaScript calls created by | 548 // The mapping of pending JavaScript calls created by |
546 // ExecuteJavaScript and their corresponding callbacks. | 549 // ExecuteJavaScript and their corresponding callbacks. |
547 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 550 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
| 551 std::map<int, FlushVisualStateResultCallback> flush_visual_state_callbacks_; |
548 | 552 |
549 int routing_id_; | 553 int routing_id_; |
550 | 554 |
551 // The current state of this RenderFrameHost. | 555 // The current state of this RenderFrameHost. |
552 RenderFrameHostImplState rfh_state_; | 556 RenderFrameHostImplState rfh_state_; |
553 | 557 |
554 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 558 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
555 // the renderer process. Currently only used for subframes. | 559 // the renderer process. Currently only used for subframes. |
556 // TODO(creis): Use this for main frames as well when RVH goes away. | 560 // TODO(creis): Use this for main frames as well when RVH goes away. |
557 bool render_frame_created_; | 561 bool render_frame_created_; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 | 631 |
628 // NOTE: This must be the last member. | 632 // NOTE: This must be the last member. |
629 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 633 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
630 | 634 |
631 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 635 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
632 }; | 636 }; |
633 | 637 |
634 } // namespace content | 638 } // namespace content |
635 | 639 |
636 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 640 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |