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

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

Issue 2467793002: use scoped_refptr
Patch Set: add test Created 4 years, 1 month 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 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 } 1402 }
1403 1403
1404 void RenderProcessHostImpl::Resume() { 1404 void RenderProcessHostImpl::Resume() {
1405 Send(new ChildProcessMsg_Resume()); 1405 Send(new ChildProcessMsg_Resume());
1406 } 1406 }
1407 1407
1408 mojom::Renderer* RenderProcessHostImpl::GetRendererInterface() { 1408 mojom::Renderer* RenderProcessHostImpl::GetRendererInterface() {
1409 return renderer_interface_.get(); 1409 return renderer_interface_.get();
1410 } 1410 }
1411 1411
1412 BrowserMessageFilter* RenderProcessHostImpl::GetResourceMessageFilter() {
1413 return resource_message_filter_.get();
1414 }
1415
1412 mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() { 1416 mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() {
1413 return remote_route_provider_.get(); 1417 return remote_route_provider_.get();
1414 } 1418 }
1415 1419
1416 void RenderProcessHostImpl::AddRoute(int32_t routing_id, 1420 void RenderProcessHostImpl::AddRoute(int32_t routing_id,
1417 IPC::Listener* listener) { 1421 IPC::Listener* listener) {
1418 CHECK(!listeners_.Lookup(routing_id)) << "Found Routing ID Conflict: " 1422 CHECK(!listeners_.Lookup(routing_id)) << "Found Routing ID Conflict: "
1419 << routing_id; 1423 << routing_id;
1420 listeners_.AddWithID(listener, routing_id); 1424 listeners_.AddWithID(listener, routing_id);
1421 } 1425 }
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2976 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2980 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2977 2981
2978 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2982 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2979 // enough information here so that we can determine what the bad message was. 2983 // enough information here so that we can determine what the bad message was.
2980 base::debug::Alias(&error); 2984 base::debug::Alias(&error);
2981 bad_message::ReceivedBadMessage(render_process_id, 2985 bad_message::ReceivedBadMessage(render_process_id,
2982 bad_message::RPH_MOJO_PROCESS_ERROR); 2986 bad_message::RPH_MOJO_PROCESS_ERROR);
2983 } 2987 }
2984 2988
2985 } // namespace content 2989 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698