Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: remoting/host/chromoting_host.h

Issue 10696134: remoting/host: Rename Capturer to VideoFrameCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "net/base/backoff_entry.h"
15 #include "remoting/base/encoder.h" 15 #include "remoting/base/encoder.h"
16 #include "remoting/host/capturer.h"
17 #include "remoting/host/client_session.h" 16 #include "remoting/host/client_session.h"
18 #include "remoting/host/desktop_environment.h" 17 #include "remoting/host/desktop_environment.h"
19 #include "remoting/host/host_key_pair.h" 18 #include "remoting/host/host_key_pair.h"
20 #include "remoting/host/host_status_observer.h" 19 #include "remoting/host/host_status_observer.h"
21 #include "remoting/host/mouse_move_observer.h" 20 #include "remoting/host/mouse_move_observer.h"
22 #include "remoting/host/ui_strings.h" 21 #include "remoting/host/ui_strings.h"
23 #include "remoting/protocol/authenticator.h" 22 #include "remoting/protocol/authenticator.h"
24 #include "remoting/protocol/session_manager.h" 23 #include "remoting/protocol/session_manager.h"
25 #include "remoting/protocol/connection_to_client.h" 24 #include "remoting/protocol/connection_to_client.h"
26 25
27 namespace remoting { 26 namespace remoting {
28 27
29 namespace protocol { 28 namespace protocol {
30 class InputStub; 29 class InputStub;
31 class SessionConfig; 30 class SessionConfig;
32 class CandidateSessionConfig; 31 class CandidateSessionConfig;
33 } // namespace protocol 32 } // namespace protocol
34 33
35 class Capturer;
36 class ChromotingHostContext; 34 class ChromotingHostContext;
37 class DesktopEnvironment; 35 class DesktopEnvironment;
38 class Encoder; 36 class Encoder;
39 class ScreenRecorder; 37 class ScreenRecorder;
40 38
41 // A class to implement the functionality of a host process. 39 // A class to implement the functionality of a host process.
42 // 40 //
43 // Here's the work flow of this class: 41 // Here's the work flow of this class:
44 // 1. We should load the saved GAIA ID token or if this is the first 42 // 1. We should load the saved GAIA ID token or if this is the first
45 // time the host process runs we should prompt user for the 43 // time the host process runs we should prompt user for the
46 // credential. We will use this token or credentials to authenicate 44 // credential. We will use this token or credentials to authenicate
47 // and register the host. 45 // and register the host.
48 // 46 //
49 // 2. We listen for incoming connection using libjingle. We will create 47 // 2. We listen for incoming connection using libjingle. We will create
50 // a ConnectionToClient object that wraps around linjingle for transport. 48 // a ConnectionToClient object that wraps around linjingle for transport.
51 // A ScreenRecorder is created with an Encoder and a Capturer. 49 // A ScreenRecorder is created with an Encoder and a VideoFrameCapturer.
52 // A ConnectionToClient is added to the ScreenRecorder for transporting 50 // A ConnectionToClient is added to the ScreenRecorder for transporting
53 // the screen captures. An InputStub is created and registered with the 51 // the screen captures. An InputStub is created and registered with the
54 // ConnectionToClient to receive mouse / keyboard events from the remote 52 // ConnectionToClient to receive mouse / keyboard events from the remote
55 // client. 53 // client.
56 // After we have done all the initialization we'll start the ScreenRecorder. 54 // After we have done all the initialization we'll start the ScreenRecorder.
57 // We'll then enter the running state of the host process. 55 // We'll then enter the running state of the host process.
58 // 56 //
59 // 3. When the user is disconnected, we will pause the ScreenRecorder 57 // 3. When the user is disconnected, we will pause the ScreenRecorder
60 // and try to terminate the threads we have created. This will allow 58 // and try to terminate the threads we have created. This will allow
61 // all pending tasks to complete. After all of that completed we 59 // all pending tasks to complete. After all of that completed we
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 221
224 // The maximum duration of any session. 222 // The maximum duration of any session.
225 base::TimeDelta max_session_duration_; 223 base::TimeDelta max_session_duration_;
226 224
227 DISALLOW_COPY_AND_ASSIGN(ChromotingHost); 225 DISALLOW_COPY_AND_ASSIGN(ChromotingHost);
228 }; 226 };
229 227
230 } // namespace remoting 228 } // namespace remoting
231 229
232 #endif // REMOTING_HOST_CHROMOTING_HOST_H_ 230 #endif // REMOTING_HOST_CHROMOTING_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698