Move generic_handler.* to content\browser\webui since it's needed by all webui pages.
[chromium-blink-merge.git] / remoting / host / win / session_desktop_environment.h
blob85eaf342b9a12ee8d3069e24655a0f8f8aed1a23
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
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
8 #include "base/basictypes.h"
9 #include "base/callback.h"
10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h"
12 #include "remoting/host/basic_desktop_environment.h"
14 namespace remoting {
16 // Used to create audio/video capturers and event executor that are compatible
17 // with Windows sessions.
18 class SessionDesktopEnvironment : public BasicDesktopEnvironment {
19 public:
20 explicit SessionDesktopEnvironment(const base::Closure& inject_sas);
21 virtual ~SessionDesktopEnvironment();
23 // DesktopEnvironment implementation.
24 virtual scoped_ptr<EventExecutor> CreateEventExecutor(
25 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
26 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE;
28 private:
29 // Used to ask the daemon to inject Secure Attention Sequence.
30 base::Closure inject_sas_;
32 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment);
35 // Used to create |SessionDesktopEnvironment| instances.
36 class SessionDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
37 public:
38 explicit SessionDesktopEnvironmentFactory(const base::Closure& inject_sas);
39 virtual ~SessionDesktopEnvironmentFactory();
41 // DesktopEnvironmentFactory implementation.
42 virtual scoped_ptr<DesktopEnvironment> Create(
43 const std::string& client_jid,
44 const base::Closure& disconnect_callback) OVERRIDE;
46 private:
47 // Used to ask the daemon to inject Secure Attention Sequence.
48 base::Closure inject_sas_;
50 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory);
53 } // namespace remoting
55 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_