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

Side by Side Diff: ipc/ipc_channel_proxy.cc

Issue 12761003: Revert 187233 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | ipc/unix_domain_socket_util.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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/compiler_specific.h" 6 #include "base/compiler_specific.h"
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 int ChannelProxy::TakeClientFileDescriptor() { 408 int ChannelProxy::TakeClientFileDescriptor() {
409 DCHECK(CalledOnValidThread()); 409 DCHECK(CalledOnValidThread());
410 410
411 Channel* channel = context_.get()->channel_.get(); 411 Channel* channel = context_.get()->channel_.get();
412 // Channel must have been created first. 412 // Channel must have been created first.
413 DCHECK(channel) << context_.get()->channel_id_; 413 DCHECK(channel) << context_.get()->channel_id_;
414 return channel->TakeClientFileDescriptor(); 414 return channel->TakeClientFileDescriptor();
415 } 415 }
416 416
417 bool ChannelProxy::GetPeerEuid(uid_t* peer_euid) const { 417 bool ChannelProxy::GetClientEuid(uid_t* client_euid) const {
418 DCHECK(CalledOnValidThread()); 418 DCHECK(CalledOnValidThread());
419 419
420 Channel* channel = context_.get()->channel_.get(); 420 Channel* channel = context_.get()->channel_.get();
421 // Channel must have been created first. 421 // Channel must have been created first.
422 DCHECK(channel) << context_.get()->channel_id_; 422 DCHECK(channel) << context_.get()->channel_id_;
423 return channel->GetPeerEuid(peer_euid); 423 return channel->GetClientEuid(client_euid);
424 } 424 }
425 #endif 425 #endif
426 426
427 //----------------------------------------------------------------------------- 427 //-----------------------------------------------------------------------------
428 428
429 } // namespace IPC 429 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.h ('k') | ipc/unix_domain_socket_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698