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

Side by Side Diff: content/common/child_process_host_impl.cc

Issue 2494373002: Remove IPC channel IDs. (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | ipc/ipc_channel_factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/common/child_process_host_impl.h" 5 #include "content/common/child_process_host_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 OnDeletedGpuMemoryBuffer) 267 OnDeletedGpuMemoryBuffer)
268 IPC_MESSAGE_UNHANDLED(handled = false) 268 IPC_MESSAGE_UNHANDLED(handled = false)
269 IPC_END_MESSAGE_MAP() 269 IPC_END_MESSAGE_MAP()
270 270
271 if (!handled) 271 if (!handled)
272 handled = delegate_->OnMessageReceived(msg); 272 handled = delegate_->OnMessageReceived(msg);
273 } 273 }
274 274
275 #ifdef IPC_MESSAGE_LOG_ENABLED 275 #ifdef IPC_MESSAGE_LOG_ENABLED
276 if (logger->Enabled()) 276 if (logger->Enabled())
277 logger->OnPostDispatchMessage(msg, channel_id_); 277 logger->OnPostDispatchMessage(msg);
278 #endif 278 #endif
279 return handled; 279 return handled;
280 } 280 }
281 281
282 void ChildProcessHostImpl::OnChannelConnected(int32_t peer_pid) { 282 void ChildProcessHostImpl::OnChannelConnected(int32_t peer_pid) {
283 if (!peer_process_.IsValid()) { 283 if (!peer_process_.IsValid()) {
284 peer_process_ = base::Process::OpenWithExtraPrivileges(peer_pid); 284 peer_process_ = base::Process::OpenWithExtraPrivileges(peer_pid);
285 if (!peer_process_.IsValid()) 285 if (!peer_process_.IsValid())
286 peer_process_ = delegate_->GetProcess().Duplicate(); 286 peer_process_ = delegate_->GetProcess().Duplicate();
287 DCHECK(peer_process_.IsValid()); 287 DCHECK(peer_process_.IsValid());
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer( 339 void ChildProcessHostImpl::OnDeletedGpuMemoryBuffer(
340 gfx::GpuMemoryBufferId id, 340 gfx::GpuMemoryBufferId id,
341 const gpu::SyncToken& sync_token) { 341 const gpu::SyncToken& sync_token) {
342 // Note: Nothing to do here as ownership of shared memory backed 342 // Note: Nothing to do here as ownership of shared memory backed
343 // GpuMemoryBuffers is passed with IPC. 343 // GpuMemoryBuffers is passed with IPC.
344 } 344 }
345 345
346 } // namespace content 346 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | ipc/ipc_channel_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698