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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool IsCrossProcessSubframe() override; | 123 bool IsCrossProcessSubframe() override; |
124 GURL GetLastCommittedURL() override; | 124 GURL GetLastCommittedURL() override; |
125 gfx::NativeView GetNativeView() override; | 125 gfx::NativeView GetNativeView() override; |
126 void ExecuteJavaScript(const base::string16& javascript) override; | 126 void ExecuteJavaScript(const base::string16& javascript) override; |
127 void ExecuteJavaScript(const base::string16& javascript, | 127 void ExecuteJavaScript(const base::string16& javascript, |
128 const JavaScriptResultCallback& callback) override; | 128 const JavaScriptResultCallback& callback) override; |
129 void ExecuteJavaScriptForTests(const base::string16& javascript) override; | 129 void ExecuteJavaScriptForTests(const base::string16& javascript) override; |
130 RenderViewHost* GetRenderViewHost() override; | 130 RenderViewHost* GetRenderViewHost() override; |
131 ServiceRegistry* GetServiceRegistry() override; | 131 ServiceRegistry* GetServiceRegistry() override; |
132 void ActivateFindInPageResultForAccessibility(int request_id) override; | 132 void ActivateFindInPageResultForAccessibility(int request_id) override; |
| 133 void FlushVisualState( |
| 134 const FlushVisualStateResultCallback& callback) override; |
133 | 135 |
134 // IPC::Sender | 136 // IPC::Sender |
135 bool Send(IPC::Message* msg) override; | 137 bool Send(IPC::Message* msg) override; |
136 | 138 |
137 // IPC::Listener | 139 // IPC::Listener |
138 bool OnMessageReceived(const IPC::Message& msg) override; | 140 bool OnMessageReceived(const IPC::Message& msg) override; |
139 | 141 |
140 // BrowserAccessibilityDelegate | 142 // BrowserAccessibilityDelegate |
141 void AccessibilitySetFocus(int acc_obj_id) override; | 143 void AccessibilitySetFocus(int acc_obj_id) override; |
142 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 144 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 const base::string16& error_description); | 431 const base::string16& error_description); |
430 void OnDidCommitProvisionalLoad(const IPC::Message& msg); | 432 void OnDidCommitProvisionalLoad(const IPC::Message& msg); |
431 void OnDidDropNavigation(); | 433 void OnDidDropNavigation(); |
432 void OnBeforeUnloadACK( | 434 void OnBeforeUnloadACK( |
433 bool proceed, | 435 bool proceed, |
434 const base::TimeTicks& renderer_before_unload_start_time, | 436 const base::TimeTicks& renderer_before_unload_start_time, |
435 const base::TimeTicks& renderer_before_unload_end_time); | 437 const base::TimeTicks& renderer_before_unload_end_time); |
436 void OnSwapOutACK(); | 438 void OnSwapOutACK(); |
437 void OnContextMenu(const ContextMenuParams& params); | 439 void OnContextMenu(const ContextMenuParams& params); |
438 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 440 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
| 441 void OnFlushVisualStateResponse(int id); |
439 void OnRunJavaScriptMessage(const base::string16& message, | 442 void OnRunJavaScriptMessage(const base::string16& message, |
440 const base::string16& default_prompt, | 443 const base::string16& default_prompt, |
441 const GURL& frame_url, | 444 const GURL& frame_url, |
442 JavaScriptMessageType type, | 445 JavaScriptMessageType type, |
443 IPC::Message* reply_msg); | 446 IPC::Message* reply_msg); |
444 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 447 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
445 const base::string16& message, | 448 const base::string16& message, |
446 bool is_reload, | 449 bool is_reload, |
447 IPC::Message* reply_msg); | 450 IPC::Message* reply_msg); |
448 void OnTextSurroundingSelectionResponse(const base::string16& content, | 451 void OnTextSurroundingSelectionResponse(const base::string16& content, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 // Allows this RenderFrameHost to add and remove nodes in response to | 531 // Allows this RenderFrameHost to add and remove nodes in response to |
529 // messages from the renderer requesting DOM manipulation. | 532 // messages from the renderer requesting DOM manipulation. |
530 FrameTree* frame_tree_; | 533 FrameTree* frame_tree_; |
531 | 534 |
532 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. | 535 // The FrameTreeNode which this RenderFrameHostImpl is hosted in. |
533 FrameTreeNode* frame_tree_node_; | 536 FrameTreeNode* frame_tree_node_; |
534 | 537 |
535 // The mapping of pending JavaScript calls created by | 538 // The mapping of pending JavaScript calls created by |
536 // ExecuteJavaScript and their corresponding callbacks. | 539 // ExecuteJavaScript and their corresponding callbacks. |
537 std::map<int, JavaScriptResultCallback> javascript_callbacks_; | 540 std::map<int, JavaScriptResultCallback> javascript_callbacks_; |
| 541 std::map<int, FlushVisualStateResultCallback> flush_visual_state_callbacks_; |
538 | 542 |
539 int routing_id_; | 543 int routing_id_; |
540 | 544 |
541 // The current state of this RenderFrameHost. | 545 // The current state of this RenderFrameHost. |
542 RenderFrameHostImplState rfh_state_; | 546 RenderFrameHostImplState rfh_state_; |
543 | 547 |
544 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 548 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
545 // the renderer process. Currently only used for subframes. | 549 // the renderer process. Currently only used for subframes. |
546 // TODO(creis): Use this for main frames as well when RVH goes away. | 550 // TODO(creis): Use this for main frames as well when RVH goes away. |
547 bool render_frame_created_; | 551 bool render_frame_created_; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 621 |
618 // NOTE: This must be the last member. | 622 // NOTE: This must be the last member. |
619 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 623 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
620 | 624 |
621 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 625 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
622 }; | 626 }; |
623 | 627 |
624 } // namespace content | 628 } // namespace content |
625 | 629 |
626 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 630 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |