| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // greater than 1, particularly if when second client can connect | 197 // greater than 1, particularly if when second client can connect |
| 197 // immediately after previous one disconnected. | 198 // immediately after previous one disconnected. |
| 198 int stopping_recorders_; | 199 int stopping_recorders_; |
| 199 | 200 |
| 200 // Tracks the internal state of the host. | 201 // Tracks the internal state of the host. |
| 201 State state_; | 202 State state_; |
| 202 | 203 |
| 203 // Configuration of the protocol. | 204 // Configuration of the protocol. |
| 204 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; | 205 scoped_ptr<protocol::CandidateSessionConfig> protocol_config_; |
| 205 | 206 |
| 207 // Login backoff state. |
| 208 net::BackoffEntry login_backoff_; |
| 209 |
| 206 // Flags used for RejectAuthenticatingClient(). | 210 // Flags used for RejectAuthenticatingClient(). |
| 207 bool authenticating_client_; | 211 bool authenticating_client_; |
| 208 bool reject_authenticating_client_; | 212 bool reject_authenticating_client_; |
| 209 | 213 |
| 210 // Stores list of tasks that should be executed when we finish | 214 // Stores list of tasks that should be executed when we finish |
| 211 // shutdown. Used only while |state_| is set to kStopping. | 215 // shutdown. Used only while |state_| is set to kStopping. |
| 212 std::vector<base::Closure> shutdown_tasks_; | 216 std::vector<base::Closure> shutdown_tasks_; |
| 213 | 217 |
| 214 // TODO(sergeyu): The following members do not belong to | 218 // TODO(sergeyu): The following members do not belong to |
| 215 // ChromotingHost and should be moved elsewhere. | 219 // ChromotingHost and should be moved elsewhere. |
| 216 UiStrings ui_strings_; | 220 UiStrings ui_strings_; |
| 217 | 221 |
| 218 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 222 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
| 219 }; | 223 }; |
| 220 | 224 |
| 221 } // namespace remoting | 225 } // namespace remoting |
| 222 | 226 |
| 223 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 227 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
| OLD | NEW |