| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/message_loop.h" | 5 #include "base/message_loop.h" |
| 6 #include "base/thread.h" | 6 #include "base/thread.h" |
| 7 #include "chrome/common/ipc_channel_proxy.h" | 7 #include "chrome/common/ipc_channel_proxy.h" |
| 8 #if defined(OS_WIN) | |
| 9 // TODO(playmobil): remove ifdef once ObjectWatcher is ported | |
| 10 #include "chrome/common/ipc_logging.h" | 8 #include "chrome/common/ipc_logging.h" |
| 11 #endif | |
| 12 #include "chrome/common/ipc_message_utils.h" | 9 #include "chrome/common/ipc_message_utils.h" |
| 13 | 10 |
| 14 namespace IPC { | 11 namespace IPC { |
| 15 | 12 |
| 16 #if defined(OS_POSIX) | |
| 17 // TODO(playmobil): remove once ObjectWatcher is ported | |
| 18 #undef IPC_MESSAGE_LOG_ENABLED | |
| 19 #endif | |
| 20 | |
| 21 //----------------------------------------------------------------------------- | 13 //----------------------------------------------------------------------------- |
| 22 | 14 |
| 23 ChannelProxy::Context::Context(Channel::Listener* listener, | 15 ChannelProxy::Context::Context(Channel::Listener* listener, |
| 24 MessageFilter* filter, | 16 MessageFilter* filter, |
| 25 MessageLoop* ipc_message_loop) | 17 MessageLoop* ipc_message_loop) |
| 26 : listener_message_loop_(MessageLoop::current()), | 18 : listener_message_loop_(MessageLoop::current()), |
| 27 listener_(listener), | 19 listener_(listener), |
| 28 ipc_message_loop_(ipc_message_loop), | 20 ipc_message_loop_(ipc_message_loop), |
| 29 channel_(NULL) { | 21 channel_(NULL) { |
| 30 if (filter) | 22 if (filter) |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 Channel *channel = context_.get()->channel_; | 288 Channel *channel = context_.get()->channel_; |
| 297 DCHECK(channel); // Channel must have been created first. | 289 DCHECK(channel); // Channel must have been created first. |
| 298 channel->OnClientConnected(); | 290 channel->OnClientConnected(); |
| 299 } | 291 } |
| 300 #endif | 292 #endif |
| 301 | 293 |
| 302 //----------------------------------------------------------------------------- | 294 //----------------------------------------------------------------------------- |
| 303 | 295 |
| 304 } // namespace IPC | 296 } // namespace IPC |
| 305 | 297 |
| OLD | NEW |