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

Unified Diff: remoting/host/win/session_desktop_environment.h

Issue 11778049: Making DesktopEnvironment a factory class used by ClientSession to create audio/video capturers and… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/video_scheduler_unittest.cc ('k') | remoting/host/win/session_desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/session_desktop_environment.h
diff --git a/remoting/host/win/session_desktop_environment.h b/remoting/host/win/session_desktop_environment.h
new file mode 100644
index 0000000000000000000000000000000000000000..85eaf342b9a12ee8d3069e24655a0f8f8aed1a23
--- /dev/null
+++ b/remoting/host/win/session_desktop_environment.h
@@ -0,0 +1,55 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
+#define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
+
+#include "base/basictypes.h"
+#include "base/callback.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "remoting/host/basic_desktop_environment.h"
+
+namespace remoting {
+
+// Used to create audio/video capturers and event executor that are compatible
+// with Windows sessions.
+class SessionDesktopEnvironment : public BasicDesktopEnvironment {
+ public:
+ explicit SessionDesktopEnvironment(const base::Closure& inject_sas);
+ virtual ~SessionDesktopEnvironment();
+
+ // DesktopEnvironment implementation.
+ virtual scoped_ptr<EventExecutor> CreateEventExecutor(
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE;
+
+ private:
+ // Used to ask the daemon to inject Secure Attention Sequence.
+ base::Closure inject_sas_;
+
+ DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment);
+};
+
+// Used to create |SessionDesktopEnvironment| instances.
+class SessionDesktopEnvironmentFactory : public BasicDesktopEnvironmentFactory {
+ public:
+ explicit SessionDesktopEnvironmentFactory(const base::Closure& inject_sas);
+ virtual ~SessionDesktopEnvironmentFactory();
+
+ // DesktopEnvironmentFactory implementation.
+ virtual scoped_ptr<DesktopEnvironment> Create(
+ const std::string& client_jid,
+ const base::Closure& disconnect_callback) OVERRIDE;
+
+ private:
+ // Used to ask the daemon to inject Secure Attention Sequence.
+ base::Closure inject_sas_;
+
+ DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory);
+};
+
+} // namespace remoting
+
+#endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
« no previous file with comments | « remoting/host/video_scheduler_unittest.cc ('k') | remoting/host/win/session_desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698