Chromium Code Reviews| 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 #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/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 class HostStub; | 27 class HostStub; |
| 28 class InputStub; | 28 class InputStub; |
| 29 class SessionConfig; | 29 class SessionConfig; |
| 30 class TransportFactory; | 30 class TransportFactory; |
| 31 struct TransportRoute; | 31 struct TransportRoute; |
| 32 class VideoStub; | 32 class VideoStub; |
| 33 | 33 |
| 34 class ConnectionToHost { | 34 class ConnectionToHost { |
| 35 public: | 35 public: |
| 36 // The UI implementations maintain corresponding definitions of this | 36 // The UI implementations maintain corresponding definitions of this |
| 37 // enumeration in webapp/client_session.js and | 37 // enumeration in client_session.js and |
|
garykac
2015/03/24 20:09:13
Path no longer valid. This file is likely to move
| |
| 38 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to | 38 // android/java/src/org/chromium/chromoting/jni/JniInterface.java. Be sure to |
| 39 // update these locations if you make any changes to the ordering. | 39 // update these locations if you make any changes to the ordering. |
| 40 enum State { | 40 enum State { |
| 41 INITIALIZING, | 41 INITIALIZING, |
| 42 CONNECTING, | 42 CONNECTING, |
| 43 AUTHENTICATED, | 43 AUTHENTICATED, |
| 44 CONNECTED, | 44 CONNECTED, |
| 45 FAILED, | 45 FAILED, |
| 46 CLOSED, | 46 CLOSED, |
| 47 }; | 47 }; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 virtual InputStub* input_stub() = 0; | 103 virtual InputStub* input_stub() = 0; |
| 104 | 104 |
| 105 // Return the current state of ConnectionToHost. | 105 // Return the current state of ConnectionToHost. |
| 106 virtual State state() const = 0; | 106 virtual State state() const = 0; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 } // namespace protocol | 109 } // namespace protocol |
| 110 } // namespace remoting | 110 } // namespace remoting |
| 111 | 111 |
| 112 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 112 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| OLD | NEW |