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 "remoting/protocol/channel_dispatcher_base.h" | 5 #include "remoting/protocol/channel_dispatcher_base.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "remoting/protocol/p2p_stream_socket.h" | 10 #include "remoting/protocol/p2p_stream_socket.h" |
9 #include "remoting/protocol/stream_channel_factory.h" | 11 #include "remoting/protocol/stream_channel_factory.h" |
10 | 12 |
11 namespace remoting { | 13 namespace remoting { |
12 namespace protocol { | 14 namespace protocol { |
13 | 15 |
14 ChannelDispatcherBase::ChannelDispatcherBase(const char* channel_name) | 16 ChannelDispatcherBase::ChannelDispatcherBase(const char* channel_name) |
15 : channel_name_(channel_name), | 17 : channel_name_(channel_name), |
16 channel_factory_(nullptr), | 18 channel_factory_(nullptr), |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 52 |
51 event_handler_->OnChannelInitialized(this); | 53 event_handler_->OnChannelInitialized(this); |
52 } | 54 } |
53 | 55 |
54 void ChannelDispatcherBase::OnReadWriteFailed(int error) { | 56 void ChannelDispatcherBase::OnReadWriteFailed(int error) { |
55 event_handler_->OnChannelError(this, CHANNEL_CONNECTION_ERROR); | 57 event_handler_->OnChannelError(this, CHANNEL_CONNECTION_ERROR); |
56 } | 58 } |
57 | 59 |
58 } // namespace protocol | 60 } // namespace protocol |
59 } // namespace remoting | 61 } // namespace remoting |
OLD | NEW |