OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ | 5 #ifndef REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ |
6 #define REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ | 6 #define REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "remoting/host/basic_desktop_environment.h" | 9 #include "remoting/host/basic_desktop_environment.h" |
10 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h" | 10 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h" |
11 | 11 |
12 namespace remoting { | 12 namespace remoting { |
13 | 13 |
14 // Passed to the ChromotingHost to remote an individual window's contents, | 14 // Passed to the ChromotingHost to remote an individual window's contents, |
15 // rather than a whole desktop. | 15 // rather than a whole desktop. |
16 class SingleWindowDesktopEnvironmentFactory | 16 class SingleWindowDesktopEnvironmentFactory |
17 : public BasicDesktopEnvironmentFactory { | 17 : public BasicDesktopEnvironmentFactory { |
18 public: | 18 public: |
19 SingleWindowDesktopEnvironmentFactory( | 19 SingleWindowDesktopEnvironmentFactory( |
20 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, | 20 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, |
| 21 scoped_refptr<base::SingleThreadTaskRunner> video_capture_task_runner, |
21 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, | 22 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, |
22 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, | 23 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, |
23 webrtc::WindowId window_id); | 24 webrtc::WindowId window_id); |
24 ~SingleWindowDesktopEnvironmentFactory() override; | 25 ~SingleWindowDesktopEnvironmentFactory() override; |
25 | 26 |
26 // DesktopEnvironmentFactory interface. | 27 // DesktopEnvironmentFactory interface. |
27 scoped_ptr<DesktopEnvironment> Create( | 28 scoped_ptr<DesktopEnvironment> Create( |
28 base::WeakPtr<ClientSessionControl> client_session_control) override; | 29 base::WeakPtr<ClientSessionControl> client_session_control) override; |
29 | 30 |
30 private: | 31 private: |
31 webrtc::WindowId window_id_; | 32 webrtc::WindowId window_id_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory); | 34 DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace remoting | 37 } // namespace remoting |
37 | 38 |
38 #endif // REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ | 39 #endif // REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_ |
OLD | NEW |