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

Side by Side Diff: remoting/host/desktop_environment_factory.h

Issue 11028128: [Chromoting] Request the daemon to open a terminal once a connection has been accepted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feeback and rebased on top of https://chromiumcodereview.appspot.com/11017065/ Created 8 years, 2 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_DESKTOP_ENVIRONMENT_FACTORY_H_ 5 #ifndef REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_
6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ 6 #define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 11
12 namespace base { 12 namespace base {
13 class SingleThreadTaskRunner; 13 class SingleThreadTaskRunner;
14 } // namespace base 14 } // namespace base
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 class ChromotingHost;
18 class DesktopEnvironment; 19 class DesktopEnvironment;
19 20
20 class DesktopEnvironmentFactory { 21 class DesktopEnvironmentFactory {
21 public: 22 public:
22 DesktopEnvironmentFactory( 23 DesktopEnvironmentFactory(
23 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 24 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
24 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 25 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
25 virtual ~DesktopEnvironmentFactory(); 26 virtual ~DesktopEnvironmentFactory();
26 27
27 virtual scoped_ptr<DesktopEnvironment> Create(); 28 // Creates an instance of |DesktopEnvironment| to be used by |host|.
29 virtual scoped_ptr<DesktopEnvironment> Create(
30 scoped_refptr<ChromotingHost> host);
Wez 2012/10/17 17:51:57 Since DesktopEnvironments are created per-client,
Wez 2012/10/17 17:51:57 If you really need to pass the |host| here then pa
alexeypa (please no reviews) 2012/10/17 21:35:53 Done.
alexeypa (please no reviews) 2012/10/17 21:35:53 Ack.
Wez 2012/10/17 22:04:24 The more I think about it, the more I think I'd pr
28 31
29 // Returns |true| if created |DesktopEnvironment| instances support audio 32 // Returns |true| if created |DesktopEnvironment| instances support audio
30 // capture. 33 // capture.
31 virtual bool SupportsAudioCapture() const; 34 virtual bool SupportsAudioCapture() const;
32 35
33 protected: 36 protected:
34 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; 37 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
35 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 38 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
36 39
37 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory); 40 DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory);
38 }; 41 };
39 42
40 } // namespace remoting 43 } // namespace remoting
41 44
42 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_ 45 #endif // REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698