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_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 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
| 18 class GnubbyAuthHandler; |
| 19 |
18 // Used to create audio/video capturers and event executor that work with | 20 // Used to create audio/video capturers and event executor that work with |
19 // the local console. | 21 // the local console. |
20 class BasicDesktopEnvironment : public DesktopEnvironment { | 22 class BasicDesktopEnvironment : public DesktopEnvironment { |
21 public: | 23 public: |
22 virtual ~BasicDesktopEnvironment(); | 24 virtual ~BasicDesktopEnvironment(); |
23 | 25 |
24 // DesktopEnvironment implementation. | 26 // DesktopEnvironment implementation. |
25 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; | 27 virtual scoped_ptr<AudioCapturer> CreateAudioCapturer() OVERRIDE; |
26 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; | 28 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; |
27 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; | 29 virtual scoped_ptr<ScreenControls> CreateScreenControls() OVERRIDE; |
28 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE; | 30 virtual scoped_ptr<webrtc::ScreenCapturer> CreateVideoCapturer() OVERRIDE; |
29 virtual std::string GetCapabilities() const OVERRIDE; | 31 virtual std::string GetCapabilities() const OVERRIDE; |
30 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; | 32 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
| 33 virtual scoped_ptr<GnubbyAuthHandler> CreateGnubbyAuthHandler( |
| 34 protocol::ClientStub* client_stub) OVERRIDE; |
31 | 35 |
32 protected: | 36 protected: |
33 friend class BasicDesktopEnvironmentFactory; | 37 friend class BasicDesktopEnvironmentFactory; |
34 | 38 |
35 BasicDesktopEnvironment( | 39 BasicDesktopEnvironment( |
36 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 40 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
37 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 41 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
38 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); | 42 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); |
39 | 43 |
40 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner() const { | 44 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner() const { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 102 |
99 // Used to run UI code. | 103 // Used to run UI code. |
100 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; | 104 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; |
101 | 105 |
102 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); | 106 DISALLOW_COPY_AND_ASSIGN(BasicDesktopEnvironmentFactory); |
103 }; | 107 }; |
104 | 108 |
105 } // namespace remoting | 109 } // namespace remoting |
106 | 110 |
107 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ | 111 #endif // REMOTING_HOST_BASIC_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |