OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ |
6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 19 matching lines...) Expand all Loading... | |
30 class XmppProxy; | 30 class XmppProxy; |
31 class VideoPacket; | 31 class VideoPacket; |
32 | 32 |
33 namespace protocol { | 33 namespace protocol { |
34 | 34 |
35 class AudioReader; | 35 class AudioReader; |
36 class ClientControlDispatcher; | 36 class ClientControlDispatcher; |
37 class ClientEventDispatcher; | 37 class ClientEventDispatcher; |
38 class ClientVideoDispatcher; | 38 class ClientVideoDispatcher; |
39 | 39 |
40 const char* ConnectionStateToFriendlyString( | |
Sergey Ulanov
2015/07/29 00:56:23
Make this static method in ConnectionToHost?
tonychun
2015/07/29 16:10:13
Done.
| |
41 remoting::protocol::ConnectionToHost::State state); | |
42 | |
43 const char* ProtocolErrorToFriendlyString( | |
44 remoting::protocol::ErrorCode error_code); | |
joedow
2015/07/28 23:09:05
I'm wondering if this should be in connection_to_h
Sergey Ulanov
2015/07/29 00:56:23
Yeah, I don't think it belongs in this file. Move
tonychun
2015/07/29 16:10:13
I've added an Error class which also has a static
| |
45 | |
40 class ConnectionToHostImpl : public ConnectionToHost, | 46 class ConnectionToHostImpl : public ConnectionToHost, |
41 public SignalStrategy::Listener, | 47 public SignalStrategy::Listener, |
42 public SessionManager::Listener, | 48 public SessionManager::Listener, |
43 public Session::EventHandler, | 49 public Session::EventHandler, |
44 public ChannelDispatcherBase::EventHandler, | 50 public ChannelDispatcherBase::EventHandler, |
45 public base::NonThreadSafe { | 51 public base::NonThreadSafe { |
46 public: | 52 public: |
47 ConnectionToHostImpl(); | 53 ConnectionToHostImpl(); |
48 ~ConnectionToHostImpl() override; | 54 ~ConnectionToHostImpl() override; |
49 | 55 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 ErrorCode error_; | 133 ErrorCode error_; |
128 | 134 |
129 private: | 135 private: |
130 DISALLOW_COPY_AND_ASSIGN(ConnectionToHostImpl); | 136 DISALLOW_COPY_AND_ASSIGN(ConnectionToHostImpl); |
131 }; | 137 }; |
132 | 138 |
133 } // namespace protocol | 139 } // namespace protocol |
134 } // namespace remoting | 140 } // namespace remoting |
135 | 141 |
136 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ | 142 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_IMPL_H_ |
OLD | NEW |