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

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: Added transition: => RUNNING 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 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after
2994 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2998 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2995 2999
2996 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 3000 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2997 // enough information here so that we can determine what the bad message was. 3001 // enough information here so that we can determine what the bad message was.
2998 base::debug::Alias(&error); 3002 base::debug::Alias(&error);
2999 bad_message::ReceivedBadMessage(render_process_id, 3003 bad_message::ReceivedBadMessage(render_process_id,
3000 bad_message::RPH_MOJO_PROCESS_ERROR); 3004 bad_message::RPH_MOJO_PROCESS_ERROR);
3001 } 3005 }
3002 3006
3003 } // namespace content 3007 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698