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

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

Issue 15692018: Remove screen capturers from media/video/capture/screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/DEPS ('k') | remoting/host/basic_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_BASIC_DESKTOP_ENVIRONMENT_H_ 5 #ifndef REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_BASIC_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/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "remoting/host/desktop_environment.h" 14 #include "remoting/host/desktop_environment.h"
15 #include "remoting/host/ui_strings.h" 15 #include "remoting/host/ui_strings.h"
16 16
17 namespace remoting { 17 namespace remoting {
18 18
19 // Used to create audio/video capturers and event executor that work with 19 // Used to create audio/video capturers and event executor that work with
20 // the local console. 20 // the local console.
21 class BasicDesktopEnvironment : public DesktopEnvironment { 21 class BasicDesktopEnvironment : public DesktopEnvironment {
22 public: 22 public:
23 virtual ~BasicDesktopEnvironment(); 23 virtual ~BasicDesktopEnvironment();
24 24
25 // DesktopEnvironment implementation. 25 // DesktopEnvironment implementation.
26 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; 26 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE;
27 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; 27 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
28 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; 28 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE;
29 virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer() OVERRIDE; 29 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE;
30 virtual std::string GetCapabilities() const OVERRIDE; 30 virtual std::string GetCapabilities() const OVERRIDE;
31 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; 31 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE;
32 32
33 protected: 33 protected:
34 friend class BasicDesktopEnvironmentFactory; 34 friend class BasicDesktopEnvironmentFactory;
35 35
36 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that 36 // |ui_strings| are hosted by the BasicDesktopEnvironmentFactory instance that
37 // created |this|. |ui_strings| must outlive this object. 37 // created |this|. |ui_strings| must outlive this object.
38 BasicDesktopEnvironment( 38 BasicDesktopEnvironment(
39 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 39 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Contains a copy of the localized UI strings. 108 // Contains a copy of the localized UI strings.
109 const UiStrings ui_strings_; 109 const UiStrings ui_strings_;
110 110
111 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); 111 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory);
112 }; 112 };
113 113
114 } // namespace remoting 114 } // namespace remoting
115 115
116 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ 116 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_
OLDNEW
« no previous file with comments | « remoting/host/DEPS ('k') | remoting/host/basic_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698