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

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

Issue 999193003: Add RoutingIDIssuer to help track routing id issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 (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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 DCHECK_CURRENTLY_ON(BrowserThread::UI); 1003 DCHECK_CURRENTLY_ON(BrowserThread::UI);
1004 return browser_cdm_manager_->GetCdm(render_frame_id, cdm_id); 1004 return browser_cdm_manager_->GetCdm(render_frame_id, cdm_id);
1005 } 1005 }
1006 #endif 1006 #endif
1007 1007
1008 void RenderProcessHostImpl::AddRoute( 1008 void RenderProcessHostImpl::AddRoute(
1009 int32 routing_id, 1009 int32 routing_id,
1010 IPC::Listener* listener) { 1010 IPC::Listener* listener) {
1011 CHECK(!listeners_.Lookup(routing_id)) 1011 CHECK(!listeners_.Lookup(routing_id))
1012 << "Found Routing ID Conflict: " << routing_id; 1012 << "Found Routing ID Conflict: " << routing_id;
1013 CHECK(widget_helper_->IsRoutingIDProbablyValid(routing_id))
1014 << "Found Routing ID conflicts: " << routing_id;
1013 listeners_.AddWithID(listener, routing_id); 1015 listeners_.AddWithID(listener, routing_id);
1014 } 1016 }
1015 1017
1016 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) { 1018 void RenderProcessHostImpl::RemoveRoute(int32 routing_id) {
1017 DCHECK(listeners_.Lookup(routing_id) != NULL); 1019 DCHECK(listeners_.Lookup(routing_id) != NULL);
1018 listeners_.Remove(routing_id); 1020 listeners_.Remove(routing_id);
1019 1021
1020 #if defined(OS_WIN) 1022 #if defined(OS_WIN)
1021 // Dump the handle table if handle auditing is enabled. 1023 // Dump the handle table if handle auditing is enabled.
1022 const base::CommandLine& browser_command_line = 1024 const base::CommandLine& browser_command_line =
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
2447 if (worker_ref_count_ == 0) 2449 if (worker_ref_count_ == 0)
2448 Cleanup(); 2450 Cleanup();
2449 } 2451 }
2450 2452
2451 void RenderProcessHostImpl::GetAudioOutputControllers( 2453 void RenderProcessHostImpl::GetAudioOutputControllers(
2452 const GetAudioOutputControllersCallback& callback) const { 2454 const GetAudioOutputControllersCallback& callback) const {
2453 audio_renderer_host()->GetOutputControllers(callback); 2455 audio_renderer_host()->GetOutputControllers(callback);
2454 } 2456 }
2455 2457
2456 } // namespace content 2458 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698