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

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

Issue 10790075: Rename Capturer to VideoFrameCapturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased. 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
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "remoting/host/event_executor.h" 12 #include "remoting/host/event_executor.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 class AudioCapturer; 16 class AudioCapturer;
17 class Capturer;
18 class ChromotingHostContext; 17 class ChromotingHostContext;
18 class VideoFrameCapturer;
19 19
20 namespace protocol { 20 namespace protocol {
21 class ClipboardStub; 21 class ClipboardStub;
22 class HostEventStub; 22 class HostEventStub;
23 }; 23 }
24 24
25 class DesktopEnvironment { 25 class DesktopEnvironment {
26 public: 26 public:
27 // Creates a DesktopEnvironment used in a host plugin. 27 // Creates a DesktopEnvironment used in a host plugin.
28 static scoped_ptr<DesktopEnvironment> Create( 28 static scoped_ptr<DesktopEnvironment> Create(
29 ChromotingHostContext* context); 29 ChromotingHostContext* context);
30 30
31 // Creates a DesktopEnvironment used in a service process. 31 // Creates a DesktopEnvironment used in a service process.
32 static scoped_ptr<DesktopEnvironment> CreateForService( 32 static scoped_ptr<DesktopEnvironment> CreateForService(
33 ChromotingHostContext* context); 33 ChromotingHostContext* context);
34 34
35 static scoped_ptr<DesktopEnvironment> CreateFake( 35 static scoped_ptr<DesktopEnvironment> CreateFake(
36 ChromotingHostContext* context, 36 ChromotingHostContext* context,
37 scoped_ptr<Capturer> capturer, 37 scoped_ptr<VideoFrameCapturer> capturer,
38 scoped_ptr<EventExecutor> event_executor, 38 scoped_ptr<EventExecutor> event_executor,
39 scoped_ptr<AudioCapturer> audio_capturer); 39 scoped_ptr<AudioCapturer> audio_capturer);
40 40
41 virtual ~DesktopEnvironment(); 41 virtual ~DesktopEnvironment();
42 42
43 Capturer* capturer() const { return capturer_.get(); } 43 VideoFrameCapturer* capturer() const { return capturer_.get(); }
44 EventExecutor* event_executor() const { return event_executor_.get(); } 44 EventExecutor* event_executor() const { return event_executor_.get(); }
45 AudioCapturer* audio_capturer() const { return audio_capturer_.get(); } 45 AudioCapturer* audio_capturer() const { return audio_capturer_.get(); }
46 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard); 46 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard);
47 void OnSessionFinished(); 47 void OnSessionFinished();
48 48
49 private: 49 private:
50 DesktopEnvironment(ChromotingHostContext* context, 50 DesktopEnvironment(ChromotingHostContext* context,
51 scoped_ptr<Capturer> capturer, 51 scoped_ptr<VideoFrameCapturer> capturer,
52 scoped_ptr<EventExecutor> event_executor, 52 scoped_ptr<EventExecutor> event_executor,
53 scoped_ptr<AudioCapturer> audio_capturer); 53 scoped_ptr<AudioCapturer> audio_capturer);
54 54
55 // Host context used to make sure operations are run on the correct thread. 55 // Host context used to make sure operations are run on the correct thread.
56 // This is owned by the ChromotingHost. 56 // This is owned by the ChromotingHost.
57 ChromotingHostContext* context_; 57 ChromotingHostContext* context_;
58 58
59 // Used to capture video to deliver to clients. 59 // Used to capture video to deliver to clients.
60 scoped_ptr<Capturer> capturer_; 60 scoped_ptr<VideoFrameCapturer> capturer_;
61 61
62 // Used to capture audio to deliver to clients. 62 // Used to capture audio to deliver to clients.
63 scoped_ptr<AudioCapturer> audio_capturer_; 63 scoped_ptr<AudioCapturer> audio_capturer_;
64 64
65 // Executes input and clipboard events received from the client. 65 // Executes input and clipboard events received from the client.
66 scoped_ptr<EventExecutor> event_executor_; 66 scoped_ptr<EventExecutor> event_executor_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); 68 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment);
69 }; 69 };
70 70
71 } // namespace remoting 71 } // namespace remoting
72 72
73 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ 73 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/client_session_unittest.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698