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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 void OnDidCommitProvisionalLoad(const IPC::Message& msg); | 472 void OnDidCommitProvisionalLoad(const IPC::Message& msg); |
473 void OnDidDropNavigation(); | 473 void OnDidDropNavigation(); |
474 void OnBeforeUnloadACK( | 474 void OnBeforeUnloadACK( |
475 bool proceed, | 475 bool proceed, |
476 const base::TimeTicks& renderer_before_unload_start_time, | 476 const base::TimeTicks& renderer_before_unload_start_time, |
477 const base::TimeTicks& renderer_before_unload_end_time); | 477 const base::TimeTicks& renderer_before_unload_end_time); |
478 void OnSwapOutACK(); | 478 void OnSwapOutACK(); |
479 void OnRenderProcessGone(int status, int error_code); | 479 void OnRenderProcessGone(int status, int error_code); |
480 void OnContextMenu(const ContextMenuParams& params); | 480 void OnContextMenu(const ContextMenuParams& params); |
481 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); | 481 void OnJavaScriptExecuteResponse(int id, const base::ListValue& result); |
| 482 void OnVisualStateSwapInfo(int source_frame_number, bool swap_success); |
482 void OnVisualStateResponse(uint64 id); | 483 void OnVisualStateResponse(uint64 id); |
483 void OnRunJavaScriptMessage(const base::string16& message, | 484 void OnRunJavaScriptMessage(const base::string16& message, |
484 const base::string16& default_prompt, | 485 const base::string16& default_prompt, |
485 const GURL& frame_url, | 486 const GURL& frame_url, |
486 JavaScriptMessageType type, | 487 JavaScriptMessageType type, |
487 IPC::Message* reply_msg); | 488 IPC::Message* reply_msg); |
488 void OnRunBeforeUnloadConfirm(const GURL& frame_url, | 489 void OnRunBeforeUnloadConfirm(const GURL& frame_url, |
489 const base::string16& message, | 490 const base::string16& message, |
490 bool is_reload, | 491 bool is_reload, |
491 IPC::Message* reply_msg); | 492 IPC::Message* reply_msg); |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // PlzNavigate: Owns the stream used in navigations to store the body of the | 699 // PlzNavigate: Owns the stream used in navigations to store the body of the |
699 // response once it has started. | 700 // response once it has started. |
700 scoped_ptr<StreamHandle> stream_handle_; | 701 scoped_ptr<StreamHandle> stream_handle_; |
701 | 702 |
702 // Context shared for each PermissionService instance created for this RFH. | 703 // Context shared for each PermissionService instance created for this RFH. |
703 scoped_ptr<PermissionServiceContext> permission_service_context_; | 704 scoped_ptr<PermissionServiceContext> permission_service_context_; |
704 | 705 |
705 // NOTE: This must be the last member. | 706 // NOTE: This must be the last member. |
706 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 707 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
707 | 708 |
| 709 std::pair<int, bool> last_swap_info_; |
| 710 |
708 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 711 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
709 }; | 712 }; |
710 | 713 |
711 } // namespace content | 714 } // namespace content |
712 | 715 |
713 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 716 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |