Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 18339006: Rename RenderViewGone IPC/methods to better reflect reality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for reviews by creis@ and palmer@. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 484
485 // IPC message handlers. 485 // IPC message handlers.
486 void OnShowView(int route_id, 486 void OnShowView(int route_id,
487 WindowOpenDisposition disposition, 487 WindowOpenDisposition disposition,
488 const gfx::Rect& initial_pos, 488 const gfx::Rect& initial_pos,
489 bool user_gesture); 489 bool user_gesture);
490 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); 490 void OnShowWidget(int route_id, const gfx::Rect& initial_pos);
491 void OnShowFullscreenWidget(int route_id); 491 void OnShowFullscreenWidget(int route_id);
492 void OnRunModal(int opener_id, IPC::Message* reply_msg); 492 void OnRunModal(int opener_id, IPC::Message* reply_msg);
493 void OnRenderViewReady(); 493 void OnRenderViewReady();
494 void OnRenderViewGone(int status, int error_code); 494 void OnRenderProcessGone(int status, int error_code);
495 void OnDidStartProvisionalLoadForFrame(int64 frame_id, 495 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
496 int64 parent_frame_id, 496 int64 parent_frame_id,
497 bool main_frame, 497 bool main_frame,
498 const GURL& url); 498 const GURL& url);
499 void OnDidRedirectProvisionalLoad(int32 page_id, 499 void OnDidRedirectProvisionalLoad(int32 page_id,
500 const GURL& source_url, 500 const GURL& source_url,
501 const GURL& target_url); 501 const GURL& target_url);
502 void OnDidFailProvisionalLoadWithError( 502 void OnDidFailProvisionalLoadWithError(
503 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params); 503 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params);
504 void OnNavigate(const IPC::Message& msg); 504 void OnNavigate(const IPC::Message& msg);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 641
642 // Whether this RenderViewHost is currently swapped out, such that the view is 642 // Whether this RenderViewHost is currently swapped out, such that the view is
643 // being rendered by another process. 643 // being rendered by another process.
644 bool is_swapped_out_; 644 bool is_swapped_out_;
645 645
646 // Whether this RenderView is responsible for displaying a subframe in a 646 // Whether this RenderView is responsible for displaying a subframe in a
647 // different process from its parent page. 647 // different process from its parent page.
648 bool is_subframe_; 648 bool is_subframe_;
649 649
650 // The frame id of the main (top level) frame. This value is set on the 650 // The frame id of the main (top level) frame. This value is set on the
651 // initial navigation of a RenderView and reset when the RenderView is 651 // initial navigation of a RenderView and reset when the RenderView's
652 // terminated (in RenderViewGone). 652 // process is terminated (in RenderProcessGone).
653 int64 main_frame_id_; 653 int64 main_frame_id_;
654 654
655 // If we were asked to RunModal, then this will hold the reply_msg that we 655 // If we were asked to RunModal, then this will hold the reply_msg that we
656 // must return to the renderer to unblock it. 656 // must return to the renderer to unblock it.
657 IPC::Message* run_modal_reply_msg_; 657 IPC::Message* run_modal_reply_msg_;
658 // This will hold the routing id of the RenderView that opened us. 658 // This will hold the routing id of the RenderView that opened us.
659 int run_modal_opener_id_; 659 int run_modal_opener_id_;
660 660
661 // Set to true when there is a pending ViewMsg_ShouldClose message. This 661 // Set to true when there is a pending ViewMsg_ShouldClose message. This
662 // ensures we don't spam the renderer with multiple beforeunload requests. 662 // ensures we don't spam the renderer with multiple beforeunload requests.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 721 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
722 }; 722 };
723 723
724 #if defined(COMPILER_MSVC) 724 #if defined(COMPILER_MSVC)
725 #pragma warning(pop) 725 #pragma warning(pop)
726 #endif 726 #endif
727 727
728 } // namespace content 728 } // namespace content
729 729
730 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 730 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698