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

Side by Side Diff: remoting/host/desktop_environment.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_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 Capturer;
17 class ChromotingHostContext; 16 class ChromotingHostContext;
17 class VideoFrameCapturer;
18 18
19 namespace protocol { 19 namespace protocol {
20 class ClipboardStub; 20 class ClipboardStub;
21 class HostEventStub; 21 class HostEventStub;
22 }; 22 }
23 23
24 class DesktopEnvironment { 24 class DesktopEnvironment {
25 public: 25 public:
26 // Creates a DesktopEnvironment used in a host plugin. 26 // Creates a DesktopEnvironment used in a host plugin.
27 static scoped_ptr<DesktopEnvironment> Create( 27 static scoped_ptr<DesktopEnvironment> Create(
28 ChromotingHostContext* context); 28 ChromotingHostContext* context);
29 29
30 // Creates a DesktopEnvironment used in a service process. 30 // Creates a DesktopEnvironment used in a service process.
31 static scoped_ptr<DesktopEnvironment> CreateForService( 31 static scoped_ptr<DesktopEnvironment> CreateForService(
32 ChromotingHostContext* context); 32 ChromotingHostContext* context);
33 33
34 static scoped_ptr<DesktopEnvironment> CreateFake( 34 static scoped_ptr<DesktopEnvironment> CreateFake(
35 ChromotingHostContext* context, 35 ChromotingHostContext* context,
36 scoped_ptr<Capturer> capturer, 36 scoped_ptr<VideoFrameCapturer> capturer,
37 scoped_ptr<EventExecutor> event_executor); 37 scoped_ptr<EventExecutor> event_executor);
38 38
39 virtual ~DesktopEnvironment(); 39 virtual ~DesktopEnvironment();
40 40
41 Capturer* capturer() const { return capturer_.get(); } 41 VideoFrameCapturer* capturer() const { return capturer_.get(); }
42 EventExecutor* event_executor() const { return event_executor_.get(); } 42 EventExecutor* event_executor() const { return event_executor_.get(); }
43 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard); 43 void OnSessionStarted(scoped_ptr<protocol::ClipboardStub> client_clipboard);
44 void OnSessionFinished(); 44 void OnSessionFinished();
45 45
46 private: 46 private:
47 DesktopEnvironment(ChromotingHostContext* context, 47 DesktopEnvironment(ChromotingHostContext* context,
48 scoped_ptr<Capturer> capturer, 48 scoped_ptr<VideoFrameCapturer> capturer,
49 scoped_ptr<EventExecutor> event_executor); 49 scoped_ptr<EventExecutor> event_executor);
50 50
51 // Host context used to make sure operations are run on the correct thread. 51 // Host context used to make sure operations are run on the correct thread.
52 // This is owned by the ChromotingHost. 52 // This is owned by the ChromotingHost.
53 ChromotingHostContext* context_; 53 ChromotingHostContext* context_;
54 54
55 // Capturer to be used by ScreenRecorder. 55 // VideoFrameCapturer to be used by ScreenRecorder.
56 scoped_ptr<Capturer> capturer_; 56 scoped_ptr<VideoFrameCapturer> capturer_;
57 57
58 // Executes input and clipboard events received from the client. 58 // Executes input and clipboard events received from the client.
59 scoped_ptr<EventExecutor> event_executor_; 59 scoped_ptr<EventExecutor> event_executor_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment); 61 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment);
62 }; 62 };
63 63
64 } // namespace remoting 64 } // namespace remoting
65 65
66 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_ 66 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698