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

Side by Side Diff: remoting/host/win/session_desktop_environment.h

Issue 13461029: The continue window is owned by the desktop environment now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac. Created 7 years, 8 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_H_ 5 #ifndef REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ 6 #define REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "remoting/host/me2me_desktop_environment.h" 12 #include "remoting/host/me2me_desktop_environment.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 struct UiStrings;
17
16 // Used to create audio/video capturers and event executor that are compatible 18 // Used to create audio/video capturers and event executor that are compatible
17 // with Windows sessions. 19 // with Windows sessions.
18 class SessionDesktopEnvironment : public Me2MeDesktopEnvironment { 20 class SessionDesktopEnvironment : public Me2MeDesktopEnvironment {
19 public: 21 public:
20 virtual ~SessionDesktopEnvironment(); 22 virtual ~SessionDesktopEnvironment();
21 23
22 // DesktopEnvironment implementation. 24 // DesktopEnvironment implementation.
23 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE; 25 virtual scoped_ptr<InputInjector> CreateInputInjector() OVERRIDE;
24 26
25 private: 27 private:
26 friend class SessionDesktopEnvironmentFactory; 28 friend class SessionDesktopEnvironmentFactory;
27 SessionDesktopEnvironment( 29 SessionDesktopEnvironment(
28 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner, 30 scoped_refptr<base::SingleThreadTaskRunner> caller_task_runner,
29 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 31 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
30 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner, 32 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
31 base::WeakPtr<ClientSessionControl> client_session_control, 33 base::WeakPtr<ClientSessionControl> client_session_control,
32 const UiStrings* ui_strings, 34 const UiStrings& ui_strings,
33 const base::Closure& inject_sas); 35 const base::Closure& inject_sas);
34 36
35 // Used to ask the daemon to inject Secure Attention Sequence. 37 // Used to ask the daemon to inject Secure Attention Sequence.
36 base::Closure inject_sas_; 38 base::Closure inject_sas_;
37 39
38 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment); 40 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironment);
39 }; 41 };
40 42
41 // Used to create |SessionDesktopEnvironment| instances. 43 // Used to create |SessionDesktopEnvironment| instances.
42 class SessionDesktopEnvironmentFactory : public Me2MeDesktopEnvironmentFactory { 44 class SessionDesktopEnvironmentFactory : public Me2MeDesktopEnvironmentFactory {
(...skipping 13 matching lines...) Expand all
56 private: 58 private:
57 // Used to ask the daemon to inject Secure Attention Sequence. 59 // Used to ask the daemon to inject Secure Attention Sequence.
58 base::Closure inject_sas_; 60 base::Closure inject_sas_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); 62 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory);
61 }; 63 };
62 64
63 } // namespace remoting 65 } // namespace remoting
64 66
65 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_ 67 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698