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

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

Issue 2387603003: Resume a backgrounded renderer that was purged and suspended (Closed)
Patch Set: Add purge-and-suspend state and last modified time to WebContentsData Created 4 years, 2 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 1406
1407 bool RenderProcessHostImpl::IsWorkerRefCountDisabled() { 1407 bool RenderProcessHostImpl::IsWorkerRefCountDisabled() {
1408 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1408 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1409 return is_worker_ref_count_disabled_; 1409 return is_worker_ref_count_disabled_;
1410 } 1410 }
1411 1411
1412 void RenderProcessHostImpl::PurgeAndSuspend() { 1412 void RenderProcessHostImpl::PurgeAndSuspend() {
1413 Send(new ChildProcessMsg_PurgeAndSuspend()); 1413 Send(new ChildProcessMsg_PurgeAndSuspend());
1414 } 1414 }
1415 1415
1416 void RenderProcessHostImpl::Resume() {
1417 Send(new ChildProcessMsg_Resume());
1418 }
1419
1416 mojom::Renderer* RenderProcessHostImpl::GetRendererInterface() { 1420 mojom::Renderer* RenderProcessHostImpl::GetRendererInterface() {
1417 return renderer_interface_.get(); 1421 return renderer_interface_.get();
1418 } 1422 }
1419 1423
1420 mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() { 1424 mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() {
1421 return remote_route_provider_.get(); 1425 return remote_route_provider_.get();
1422 } 1426 }
1423 1427
1424 void RenderProcessHostImpl::AddRoute(int32_t routing_id, 1428 void RenderProcessHostImpl::AddRoute(int32_t routing_id,
1425 IPC::Listener* listener) { 1429 IPC::Listener* listener) {
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3006 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3003 3007
3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 3008 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
3005 // enough information here so that we can determine what the bad message was. 3009 // enough information here so that we can determine what the bad message was.
3006 base::debug::Alias(&error); 3010 base::debug::Alias(&error);
3007 bad_message::ReceivedBadMessage(render_process_id, 3011 bad_message::ReceivedBadMessage(render_process_id,
3008 bad_message::RPH_MOJO_PROCESS_ERROR); 3012 bad_message::RPH_MOJO_PROCESS_ERROR);
3009 } 3013 }
3010 3014
3011 } // namespace content 3015 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698