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

Side by Side Diff: remoting/host/win/session_desktop_environment_factory.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ 5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_
6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "remoting/host/desktop_environment_factory.h" 9 #include "remoting/host/desktop_environment_factory.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 12
13 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory { 13 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
14 public: 14 public:
15 SessionDesktopEnvironmentFactory( 15 SessionDesktopEnvironmentFactory(
16 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 16 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
17 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
18 const base::Closure& inject_sas); 17 const base::Closure& inject_sas);
19 virtual ~SessionDesktopEnvironmentFactory(); 18 virtual ~SessionDesktopEnvironmentFactory();
20 19
21 virtual scoped_ptr<DesktopEnvironment> Create() OVERRIDE; 20 virtual scoped_ptr<DesktopEnvironment> Create(
21 const std::string& client_jid,
22 const base::Closure& disconnect_callback) OVERRIDE;
22 23
23 private: 24 private:
24 // Used to ask the daemon to inject Secure Attention Sequence. 25 // Used to ask the daemon to inject Secure Attention Sequence.
25 base::Closure inject_sas_; 26 base::Closure inject_sas_;
26 27
27 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); 28 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory);
28 }; 29 };
29 30
30 } // namespace remoting 31 } // namespace remoting
31 32
32 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ 33 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698