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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « extensions/shell/browser/shell_extension_system.cc ('k') | ipc/ipc_sync_channel.cc » ('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 "ipc/ipc_channel_proxy.h" 5 #include "ipc/ipc_channel_proxy.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 DCHECK(CalledOnValidThread()); 476 DCHECK(CalledOnValidThread());
477 477
478 context_->AddFilter(filter); 478 context_->AddFilter(filter);
479 } 479 }
480 480
481 void ChannelProxy::RemoveFilter(MessageFilter* filter) { 481 void ChannelProxy::RemoveFilter(MessageFilter* filter) {
482 DCHECK(CalledOnValidThread()); 482 DCHECK(CalledOnValidThread());
483 483
484 context_->ipc_task_runner()->PostTask( 484 context_->ipc_task_runner()->PostTask(
485 FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_.get(), 485 FROM_HERE, base::Bind(&Context::OnRemoveFilter, context_.get(),
486 make_scoped_refptr(filter))); 486 base::RetainedRef(filter)));
487 } 487 }
488 488
489 void ChannelProxy::ClearIPCTaskRunner() { 489 void ChannelProxy::ClearIPCTaskRunner() {
490 DCHECK(CalledOnValidThread()); 490 DCHECK(CalledOnValidThread());
491 491
492 context()->ClearIPCTaskRunner(); 492 context()->ClearIPCTaskRunner();
493 } 493 }
494 494
495 base::ProcessId ChannelProxy::GetPeerPID() const { 495 base::ProcessId ChannelProxy::GetPeerPID() const {
496 return context_->peer_pid_; 496 return context_->peer_pid_;
(...skipping 24 matching lines...) Expand all
521 return channel->TakeClientFileDescriptor(); 521 return channel->TakeClientFileDescriptor();
522 } 522 }
523 #endif 523 #endif
524 524
525 void ChannelProxy::OnChannelInit() { 525 void ChannelProxy::OnChannelInit() {
526 } 526 }
527 527
528 //----------------------------------------------------------------------------- 528 //-----------------------------------------------------------------------------
529 529
530 } // namespace IPC 530 } // namespace IPC
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_extension_system.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698