| 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_HOST_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_HOST_H_ |
| 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ | 6 #define REMOTING_HOST_CHROMOTING_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
| 14 #include "net/base/backoff_entry.h" |
| 14 #include "remoting/base/encoder.h" | 15 #include "remoting/base/encoder.h" |
| 15 #include "remoting/host/capturer.h" | 16 #include "remoting/host/capturer.h" |
| 16 #include "remoting/host/client_session.h" | 17 #include "remoting/host/client_session.h" |
| 17 #include "remoting/host/desktop_environment.h" | 18 #include "remoting/host/desktop_environment.h" |
| 18 #include "remoting/host/host_key_pair.h" | 19 #include "remoting/host/host_key_pair.h" |
| 19 #include "remoting/host/host_status_observer.h" | 20 #include "remoting/host/host_status_observer.h" |
| 20 #include "remoting/host/ui_strings.h" | 21 #include "remoting/host/ui_strings.h" |
| 21 #include "remoting/jingle_glue/jingle_thread.h" | 22 #include "remoting/jingle_glue/jingle_thread.h" |
| 22 #include "remoting/jingle_glue/signal_strategy.h" | 23 #include "remoting/jingle_glue/signal_strategy.h" |
| 23 #include "remoting/protocol/authenticator.h" | 24 #include "remoting/protocol/authenticator.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 // greater than 1, particularly if when second client can connect | 198 // greater than 1, particularly if when second client can connect |
| 198 // immediately after previous one disconnected. | 199 // immediately after previous one disconnected. |
| 199 int stopping_recorders_; | 200 int stopping_recorders_; |
| 200 | 201 |
| 201 // Tracks the internal state of the host. | 202 // Tracks the internal state of the host. |
| 202 State state_; | 203 State state_; |
| 203 | 204 |
| 204 // Configuration of the protocol. | 205 // Configuration of the protocol. |
| 205 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; | 206 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; |
| 206 | 207 |
| 208 // Login backoff state. |
| 209 net::BackoffEntry login_backoff_; |
| 210 |
| 207 // Flags used for RejectAuthenticatingClient(). | 211 // Flags used for RejectAuthenticatingClient(). |
| 208 bool authenticating_client_; | 212 bool authenticating_client_; |
| 209 bool reject_authenticating_client_; | 213 bool reject_authenticating_client_; |
| 210 | 214 |
| 211 // Stores list of tasks that should be executed when we finish | 215 // Stores list of tasks that should be executed when we finish |
| 212 // shutdown. Used only while |state_| is set to kStopping. | 216 // shutdown. Used only while |state_| is set to kStopping. |
| 213 std::vector<base::Closure> shutdown_tasks_; | 217 std::vector<base::Closure> shutdown_tasks_; |
| 214 | 218 |
| 215 // TODO(sergeyu): The following members do not belong to | 219 // TODO(sergeyu): The following members do not belong to |
| 216 // ChromotingHost and should be moved elsewhere. | 220 // ChromotingHost and should be moved elsewhere. |
| 217 UiStrings ui_strings_; | 221 UiStrings ui_strings_; |
| 218 | 222 |
| 219 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 223 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 220 }; | 224 }; |
| 221 | 225 |
| 222 } // namespace remoting | 226 } // namespace remoting |
| 223 | 227 |
| 224 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 228 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |