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

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

Issue 11369024: Calling SendSAS() from a service yo make sure that Secure Attention Sequence can be injected even w… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback. Created 8 years, 1 month 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 "remoting/host/desktop_environment_factory.h" 9 #include "remoting/host/desktop_environment_factory.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 12
12 class ClientSession; 13 class ClientSession;
13 14
14 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory { 15 class SessionDesktopEnvironmentFactory : public DesktopEnvironmentFactory {
15 public: 16 public:
16 SessionDesktopEnvironmentFactory( 17 SessionDesktopEnvironmentFactory(
17 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner, 18 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
18 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner); 19 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
20 const base::Closure& inject_sas);
19 virtual ~SessionDesktopEnvironmentFactory(); 21 virtual ~SessionDesktopEnvironmentFactory();
20 22
21 virtual scoped_ptr<DesktopEnvironment> Create(ClientSession* client) OVERRIDE; 23 virtual scoped_ptr<DesktopEnvironment> Create(ClientSession* client) OVERRIDE;
22 24
23 private: 25 private:
26 // Used to ask the daemon to inject Secure Attention Sequence.
27 base::Closure inject_sas_;
28
24 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory); 29 DISALLOW_COPY_AND_ASSIGN(SessionDesktopEnvironmentFactory);
25 }; 30 };
26 31
27 } // namespace remoting 32 } // namespace remoting
28 33
29 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_ 34 #endif // REMOTING_HOST_WIN_SESSION_DESKTOP_ENVIRONMENT_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/host/sas_injector_win.cc ('k') | remoting/host/win/session_desktop_environment_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698