| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_win.h" | 5 #include "ipc/ipc_channel_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/non_thread_safe.h" | 13 #include "base/non_thread_safe.h" |
| 14 #include "base/stats_counters.h" | 14 #include "base/stats_counters.h" |
| 15 #include "base/utf_string_conversions.h" |
| 15 #include "base/win_util.h" | 16 #include "base/win_util.h" |
| 16 #include "ipc/ipc_logging.h" | 17 #include "ipc/ipc_logging.h" |
| 17 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
| 18 | 19 |
| 19 namespace IPC { | 20 namespace IPC { |
| 20 //------------------------------------------------------------------------------ | 21 //------------------------------------------------------------------------------ |
| 21 | 22 |
| 22 Channel::ChannelImpl::State::State(ChannelImpl* channel) : is_pending(false) { | 23 Channel::ChannelImpl::State::State(ChannelImpl* channel) : is_pending(false) { |
| 23 memset(&context.overlapped, 0, sizeof(context.overlapped)); | 24 memset(&context.overlapped, 0, sizeof(context.overlapped)); |
| 24 context.handler = channel; | 25 context.handler = channel; |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 427 |
| 427 void Channel::set_listener(Listener* listener) { | 428 void Channel::set_listener(Listener* listener) { |
| 428 channel_impl_->set_listener(listener); | 429 channel_impl_->set_listener(listener); |
| 429 } | 430 } |
| 430 | 431 |
| 431 bool Channel::Send(Message* message) { | 432 bool Channel::Send(Message* message) { |
| 432 return channel_impl_->Send(message); | 433 return channel_impl_->Send(message); |
| 433 } | 434 } |
| 434 | 435 |
| 435 } // namespace IPC | 436 } // namespace IPC |
| OLD | NEW |