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 // The purpose of SessionManager is to facilitate creation of chromotocol | 5 // The purpose of SessionManager is to facilitate creation of chromotocol |
6 // sessions. Both host and client use it to establish chromotocol | 6 // sessions. Both host and client use it to establish chromotocol |
7 // sessions. JingleChromotocolServer implements this inteface using | 7 // sessions. JingleChromotocolServer implements this inteface using |
8 // libjingle. | 8 // libjingle. |
9 // | 9 // |
10 // OUTGOING SESSIONS | 10 // OUTGOING SESSIONS |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 enum IncomingSessionResponse { | 112 enum IncomingSessionResponse { |
113 // Accept the session. | 113 // Accept the session. |
114 ACCEPT, | 114 ACCEPT, |
115 | 115 |
116 // Reject the session due to incompatible session configuration. | 116 // Reject the session due to incompatible session configuration. |
117 INCOMPATIBLE, | 117 INCOMPATIBLE, |
118 | 118 |
119 // Reject the session because the host is currently disabled due | 119 // Reject the session because the host is currently disabled due |
120 // to previous login attempts. | 120 // to previous login attempts. |
121 DISABLED, | 121 UNAVAILABLE, |
122 | 122 |
123 // Reject the session because the client is not allowed to connect | 123 // Reject the session because the client is not allowed to connect |
124 // to the host. | 124 // to the host. |
125 DECLINE, | 125 DECLINE, |
126 }; | 126 }; |
127 | 127 |
128 class Listener { | 128 class Listener { |
129 public: | 129 public: |
130 Listener() { } | 130 Listener() { } |
131 ~Listener() { } | 131 ~Listener() { } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 scoped_ptr<AuthenticatorFactory> authenticator_factory) = 0; | 181 scoped_ptr<AuthenticatorFactory> authenticator_factory) = 0; |
182 | 182 |
183 private: | 183 private: |
184 DISALLOW_COPY_AND_ASSIGN(SessionManager); | 184 DISALLOW_COPY_AND_ASSIGN(SessionManager); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace protocol | 187 } // namespace protocol |
188 } // namespace remoting | 188 } // namespace remoting |
189 | 189 |
190 #endif // REMOTING_PROTOCOL_SESSION_MANAGER_H_ | 190 #endif // REMOTING_PROTOCOL_SESSION_MANAGER_H_ |
OLD | NEW |