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 <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // A class to implement the functionality of a host process. | 42 // A class to implement the functionality of a host process. |
43 // | 43 // |
44 // Here's the work flow of this class: | 44 // Here's the work flow of this class: |
45 // 1. We should load the saved GAIA ID token or if this is the first | 45 // 1. We should load the saved GAIA ID token or if this is the first |
46 // time the host process runs we should prompt user for the | 46 // time the host process runs we should prompt user for the |
47 // credential. We will use this token or credentials to authenicate | 47 // credential. We will use this token or credentials to authenicate |
48 // and register the host. | 48 // and register the host. |
49 // | 49 // |
50 // 2. We listen for incoming connection using libjingle. We will create | 50 // 2. We listen for incoming connection using libjingle. We will create |
51 // a ConnectionToClient object that wraps around linjingle for transport. | 51 // a ConnectionToClient object that wraps around linjingle for transport. |
52 // A VideoScheduler is created with an Encoder and a webrtc::ScreenCapturer. | 52 // A VideoScheduler is created with an Encoder and a webrtc::DesktopCapturer. |
53 // A ConnectionToClient is added to the ScreenRecorder for transporting | 53 // A ConnectionToClient is added to the ScreenRecorder for transporting |
54 // the screen captures. An InputStub is created and registered with the | 54 // the screen captures. An InputStub is created and registered with the |
55 // ConnectionToClient to receive mouse / keyboard events from the remote | 55 // ConnectionToClient to receive mouse / keyboard events from the remote |
56 // client. | 56 // client. |
57 // After we have done all the initialization we'll start the ScreenRecorder. | 57 // After we have done all the initialization we'll start the ScreenRecorder. |
58 // We'll then enter the running state of the host process. | 58 // We'll then enter the running state of the host process. |
59 // | 59 // |
60 // 3. When the user is disconnected, we will pause the ScreenRecorder | 60 // 3. When the user is disconnected, we will pause the ScreenRecorder |
61 // and try to terminate the threads we have created. This will allow | 61 // and try to terminate the threads we have created. This will allow |
62 // all pending tasks to complete. After all of that completed we | 62 // all pending tasks to complete. After all of that completed we |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 HostExtensionList extensions_; | 217 HostExtensionList extensions_; |
218 | 218 |
219 base::WeakPtrFactory<ChromotingHost> weak_factory_; | 219 base::WeakPtrFactory<ChromotingHost> weak_factory_; |
220 | 220 |
221 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); | 221 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |
222 }; | 222 }; |
223 | 223 |
224 } // namespace remoting | 224 } // namespace remoting |
225 | 225 |
226 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ | 226 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ |
OLD | NEW |