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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 15682009: Eliminate SwapOut message parameters, keeping state in RVHM instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move pending_nav_params_ to RVHM Created 7 years, 6 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 if (CommandLine::ForCurrentProcess()->HasSwitch( 706 if (CommandLine::ForCurrentProcess()->HasSwitch(
707 switches::kEnableMemoryBenchmarking)) 707 switches::kEnableMemoryBenchmarking))
708 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); 708 channel_->AddFilter(new MemoryBenchmarkMessageFilter());
709 #endif 709 #endif
710 } 710 }
711 711
712 int RenderProcessHostImpl::GetNextRoutingID() { 712 int RenderProcessHostImpl::GetNextRoutingID() {
713 return widget_helper_->GetNextRoutingID(); 713 return widget_helper_->GetNextRoutingID();
714 } 714 }
715 715
716 void RenderProcessHostImpl::SimulateSwapOutACK( 716 void RenderProcessHostImpl::ResumeDeferredNavigation(
717 const ViewMsg_SwapOut_Params& params) { 717 const GlobalRequestID& request_id) {
718 widget_helper_->SimulateSwapOutACK(params); 718 widget_helper_->ResumeDeferredNavigation(request_id);
719 } 719 }
720 720
721 bool RenderProcessHostImpl::WaitForBackingStoreMsg( 721 bool RenderProcessHostImpl::WaitForBackingStoreMsg(
722 int render_widget_id, 722 int render_widget_id,
723 const base::TimeDelta& max_delay, 723 const base::TimeDelta& max_delay,
724 IPC::Message* msg) { 724 IPC::Message* msg) {
725 // The post task to this thread with the process id could be in queue, and we 725 // The post task to this thread with the process id could be in queue, and we
726 // don't want to dispatch a message before then since it will need the handle. 726 // don't want to dispatch a message before then since it will need the handle.
727 if (child_process_launcher_.get() && child_process_launcher_->IsStarting()) 727 if (child_process_launcher_.get() && child_process_launcher_->IsStarting())
728 return false; 728 return false;
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
1795 continue; 1795 continue;
1796 1796
1797 RenderViewHost* rvh = 1797 RenderViewHost* rvh =
1798 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); 1798 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget));
1799 1799
1800 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1800 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1801 } 1801 }
1802 } 1802 }
1803 1803
1804 } // namespace content 1804 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698