| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/memory/ref_counted.h" | 5 #include "base/memory/ref_counted.h" |
| 6 #include "base/memory/scoped_ptr.h" | 6 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "ipc/ipc_channel_proxy.h" | 8 #include "ipc/ipc_channel_proxy.h" |
| 9 #include "ipc/ipc_logging.h" | 9 #include "ipc/ipc_logging.h" |
| 10 #include "ipc/ipc_message_utils.h" | 10 #include "ipc/ipc_message_utils.h" |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 if (listener_) | 274 if (listener_) |
| 275 listener_->OnChannelError(); | 275 listener_->OnChannelError(); |
| 276 } | 276 } |
| 277 | 277 |
| 278 //----------------------------------------------------------------------------- | 278 //----------------------------------------------------------------------------- |
| 279 | 279 |
| 280 ChannelProxy::ChannelProxy(const IPC::ChannelHandle& channel_handle, | 280 ChannelProxy::ChannelProxy(const IPC::ChannelHandle& channel_handle, |
| 281 Channel::Mode mode, | 281 Channel::Mode mode, |
| 282 Channel::Listener* listener, | 282 Channel::Listener* listener, |
| 283 MessageLoop* ipc_thread) | 283 MessageLoop* ipc_thread) |
| 284 : context_(new Context(listener, ipc_thread)) { | 284 : context_(new Context(listener, ipc_thread)), |
| 285 outgoing_message_filter_(NULL) { |
| 285 Init(channel_handle, mode, ipc_thread, true); | 286 Init(channel_handle, mode, ipc_thread, true); |
| 286 } | 287 } |
| 287 | 288 |
| 288 ChannelProxy::ChannelProxy(const IPC::ChannelHandle& channel_handle, | 289 ChannelProxy::ChannelProxy(const IPC::ChannelHandle& channel_handle, |
| 289 Channel::Mode mode, | 290 Channel::Mode mode, |
| 290 MessageLoop* ipc_thread, | 291 MessageLoop* ipc_thread, |
| 291 Context* context, | 292 Context* context, |
| 292 bool create_pipe_now) | 293 bool create_pipe_now) |
| 293 : context_(context) { | 294 : context_(context) { |
| 294 Init(channel_handle, mode, ipc_thread, create_pipe_now); | 295 Init(channel_handle, mode, ipc_thread, create_pipe_now); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 Channel *channel = context_.get()->channel_.get(); | 381 Channel *channel = context_.get()->channel_.get(); |
| 381 // Channel must have been created first. | 382 // Channel must have been created first. |
| 382 DCHECK(channel) << context_.get()->channel_id_; | 383 DCHECK(channel) << context_.get()->channel_id_; |
| 383 return channel->GetClientEuid(client_euid); | 384 return channel->GetClientEuid(client_euid); |
| 384 } | 385 } |
| 385 #endif | 386 #endif |
| 386 | 387 |
| 387 //----------------------------------------------------------------------------- | 388 //----------------------------------------------------------------------------- |
| 388 | 389 |
| 389 } // namespace IPC | 390 } // namespace IPC |
| OLD | NEW |