OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMOTING_HOST_H_ | 5 #ifndef REMOTING_CHROMOTING_HOST_H_ |
6 #define REMOTING_CHROMOTING_HOST_H_ | 6 #define REMOTING_CHROMOTING_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/thread.h" | 10 #include "base/thread.h" |
11 #include "remoting/host/capturer.h" | |
12 #include "remoting/host/client_connection.h" | 11 #include "remoting/host/client_connection.h" |
13 #include "remoting/host/encoder.h" | |
14 #include "remoting/host/event_executor.h" | |
15 #include "remoting/host/heartbeat_sender.h" | 12 #include "remoting/host/heartbeat_sender.h" |
16 #include "remoting/host/session_manager.h" | |
17 #include "remoting/jingle_glue/jingle_client.h" | 13 #include "remoting/jingle_glue/jingle_client.h" |
18 #include "remoting/jingle_glue/jingle_thread.h" | 14 #include "remoting/jingle_glue/jingle_thread.h" |
19 | 15 |
20 class Task; | 16 class Task; |
21 | 17 |
22 namespace remoting { | 18 namespace remoting { |
23 | 19 |
| 20 class Capturer; |
24 class ChromotingHostContext; | 21 class ChromotingHostContext; |
| 22 class Encoder; |
| 23 class EventExecutor; |
25 class MutableHostConfig; | 24 class MutableHostConfig; |
| 25 class SessionManager; |
26 | 26 |
27 // A class to implement the functionality of a host process. | 27 // A class to implement the functionality of a host process. |
28 // | 28 // |
29 // Here's the work flow of this class: | 29 // Here's the work flow of this class: |
30 // 1. We should load the saved GAIA ID token or if this is the first | 30 // 1. We should load the saved GAIA ID token or if this is the first |
31 // time the host process runs we should prompt user for the | 31 // time the host process runs we should prompt user for the |
32 // credential. We will use this token or credentials to authenicate | 32 // credential. We will use this token or credentials to authenicate |
33 // and register the host. | 33 // and register the host. |
34 // | 34 // |
35 // 2. We listen for incoming connection using libjingle. We will create | 35 // 2. We listen for incoming connection using libjingle. We will create |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 // Lock is to lock the access to |state_|. | 149 // Lock is to lock the access to |state_|. |
150 Lock lock_; | 150 Lock lock_; |
151 | 151 |
152 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 152 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
153 }; | 153 }; |
154 | 154 |
155 } // namespace remoting | 155 } // namespace remoting |
156 | 156 |
157 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 157 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |