| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |