| 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 "ipc/ipc_channel_win.h" | 5 #include "ipc/ipc_channel_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <sddl.h> | 8 #include <sddl.h> |
| 9 #include <sstream> | 9 #include <sstream> |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 //------------------------------------------------------------------------------ | 98 //------------------------------------------------------------------------------ |
| 99 | 99 |
| 100 Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle &channel_handle, | 100 Channel::ChannelImpl::ChannelImpl(const IPC::ChannelHandle &channel_handle, |
| 101 Mode mode, Listener* listener) | 101 Mode mode, Listener* listener) |
| 102 : ALLOW_THIS_IN_INITIALIZER_LIST(input_state_(this)), | 102 : ALLOW_THIS_IN_INITIALIZER_LIST(input_state_(this)), |
| 103 ALLOW_THIS_IN_INITIALIZER_LIST(output_state_(this)), | 103 ALLOW_THIS_IN_INITIALIZER_LIST(output_state_(this)), |
| 104 pipe_(INVALID_HANDLE_VALUE), | 104 pipe_(INVALID_HANDLE_VALUE), |
| 105 listener_(listener), | 105 listener_(listener), |
| 106 waiting_connect_(mode == MODE_SERVER), | 106 waiting_connect_(mode == MODE_SERVER || mode == MODE_NAMED_SERVER), |
| 107 processing_incoming_(false), | 107 processing_incoming_(false), |
| 108 ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) { | 108 ALLOW_THIS_IN_INITIALIZER_LIST(factory_(this)) { |
| 109 switch(mode) { | 109 switch(mode) { |
| 110 case MODE_NONE: | 110 case MODE_NONE: |
| 111 LOG(FATAL) << "Bad mode for " << channel_handle.name; | 111 LOG(FATAL) << "Bad mode for " << channel_handle.name; |
| 112 break; | 112 break; |
| 113 case MODE_SERVER: | 113 case MODE_SERVER: |
| 114 case MODE_CLIENT: | 114 case MODE_CLIENT: |
| 115 break; | 115 break; |
| 116 case MODE_NAMED_SERVER: | 116 case MODE_NAMED_SERVER: |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 | 505 |
| 506 void Channel::set_listener(Listener* listener) { | 506 void Channel::set_listener(Listener* listener) { |
| 507 channel_impl_->set_listener(listener); | 507 channel_impl_->set_listener(listener); |
| 508 } | 508 } |
| 509 | 509 |
| 510 bool Channel::Send(Message* message) { | 510 bool Channel::Send(Message* message) { |
| 511 return channel_impl_->Send(message); | 511 return channel_impl_->Send(message); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace IPC | 514 } // namespace IPC |
| OLD | NEW |