| 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_SESSION_H_ | 5 #ifndef REMOTING_PROTOCOL_SESSION_H_ |
| 6 #define REMOTING_PROTOCOL_SESSION_H_ | 6 #define REMOTING_PROTOCOL_SESSION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "remoting/protocol/errors.h" | 10 #include "remoting/protocol/errors.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // Sent session-initiate, but haven't received session-accept. | 32 // Sent session-initiate, but haven't received session-accept. |
| 33 CONNECTING, | 33 CONNECTING, |
| 34 | 34 |
| 35 // Received session-initiate, but haven't sent session-accept. | 35 // Received session-initiate, but haven't sent session-accept. |
| 36 ACCEPTING, | 36 ACCEPTING, |
| 37 | 37 |
| 38 // Session has been accepted and is pending authentication. | 38 // Session has been accepted and is pending authentication. |
| 39 CONNECTED, | 39 CONNECTED, |
| 40 | 40 |
| 41 // Session has started authenticating. |
| 42 AUTHENTICATING, |
| 43 |
| 41 // Session has been connected and authenticated. | 44 // Session has been connected and authenticated. |
| 42 AUTHENTICATED, | 45 AUTHENTICATED, |
| 43 | 46 |
| 44 // Session has been closed. | 47 // Session has been closed. |
| 45 CLOSED, | 48 CLOSED, |
| 46 | 49 |
| 47 // Connection has failed. | 50 // Connection has failed. |
| 48 FAILED, | 51 FAILED, |
| 49 }; | 52 }; |
| 50 | 53 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 virtual void Close() = 0; | 114 virtual void Close() = 0; |
| 112 | 115 |
| 113 private: | 116 private: |
| 114 DISALLOW_COPY_AND_ASSIGN(Session); | 117 DISALLOW_COPY_AND_ASSIGN(Session); |
| 115 }; | 118 }; |
| 116 | 119 |
| 117 } // namespace protocol | 120 } // namespace protocol |
| 118 } // namespace remoting | 121 } // namespace remoting |
| 119 | 122 |
| 120 #endif // REMOTING_PROTOCOL_SESSION_H_ | 123 #endif // REMOTING_PROTOCOL_SESSION_H_ |
| OLD | NEW |