Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / remoting / host / single_window_desktop_environment.h
blob6ff683b4701ca4b53ebe0e6d1fa101bc6b98b0f8
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_
8 #include "remoting/host/basic_desktop_environment.h"
9 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
11 namespace remoting {
13 // Passed to the ChromotingHost to remote an individual window's contents,
14 // rather than a whole desktop.
15 class SingleWindowDesktopEnvironmentFactory
16 : public BasicDesktopEnvironmentFactory {
17 public:
18 SingleWindowDesktopEnvironmentFactory(
19 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
20 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
21 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
22 webrtc::WindowId window_id);
23 ~SingleWindowDesktopEnvironmentFactory() override;
25 // DesktopEnvironmentFactory interface.
26 scoped_ptr<DesktopEnvironment> Create(
27 base::WeakPtr<ClientSessionControl> client_session_control) override;
29 private:
30 webrtc::WindowId window_id_;
32 DISALLOW_COPY_AND_ASSIGN(SingleWindowDesktopEnvironmentFactory);
35 } // namespace remoting
37 #endif // REMOTING_HOST_SINGLE_WINDOW_DESKTOP_ENVIRONMENT_H_