Chromium Code Reviews| 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 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 41 class InputStub; | 41 class InputStub; |
| 42 class SessionConfig; | 42 class SessionConfig; |
| 43 class VideoReader; | 43 class VideoReader; |
| 44 class VideoStub; | 44 class VideoStub; |
| 45 | 45 |
| 46 class ConnectionToHost : public SignalStrategy::StatusObserver, | 46 class ConnectionToHost : public SignalStrategy::StatusObserver, |
| 47 public SessionManager::Listener { | 47 public SessionManager::Listener { |
| 48 public: | 48 public: |
| 49 enum State { | 49 enum State { |
| 50 CONNECTING, | 50 CONNECTING, |
| 51 // TODO(sergeyu): Currently CONNECTED state is not used and state | |
| 52 // is set to AUTHENTICATED after we are connected. Remove it and | |
| 53 // renamed AUTHENTICATED to CONNECTED? | |
|
Wez
2011/11/03 18:14:37
With the EKE handshake in place we'll have a separ
Sergey Ulanov
2011/11/03 19:11:55
I agree.
| |
| 51 CONNECTED, | 54 CONNECTED, |
| 52 AUTHENTICATED, | 55 AUTHENTICATED, |
| 53 FAILED, | 56 FAILED, |
| 54 CLOSED, | 57 CLOSED, |
| 55 }; | 58 }; |
| 56 | 59 |
| 57 enum Error { | 60 enum Error { |
| 58 OK, | 61 OK, |
| 59 HOST_IS_OFFLINE, | 62 HOST_IS_OFFLINE, |
| 60 SESSION_REJECTED, | 63 SESSION_REJECTED, |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 private: | 174 private: |
| 172 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); | 175 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); |
| 173 }; | 176 }; |
| 174 | 177 |
| 175 } // namespace protocol | 178 } // namespace protocol |
| 176 } // namespace remoting | 179 } // namespace remoting |
| 177 | 180 |
| 178 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost); | 181 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::protocol::ConnectionToHost); |
| 179 | 182 |
| 180 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 183 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| OLD | NEW |