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

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

Issue 10836224: [Chromoting] Call SendSAS() directly from the host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SensSAS() is called from an app now. Created 8 years, 4 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_WTS_SESSION_PROCESS_LAUNCHER_H_ 5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_LAUNCHER_H_
6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_LAUNCHER_H_ 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_LAUNCHER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 class SingleThreadTaskRunner; 25 class SingleThreadTaskRunner;
26 } // namespace base 26 } // namespace base
27 27
28 namespace IPC { 28 namespace IPC {
29 class ChannelProxy; 29 class ChannelProxy;
30 class Message; 30 class Message;
31 } // namespace IPC 31 } // namespace IPC
32 32
33 namespace remoting { 33 namespace remoting {
34 34
35 class SasInjector;
36 class WtsConsoleMonitor; 35 class WtsConsoleMonitor;
37 36
38 class WtsSessionProcessLauncher 37 class WtsSessionProcessLauncher
39 : public base::MessagePumpForIO::IOHandler, 38 : public base::MessagePumpForIO::IOHandler,
40 public Stoppable, 39 public Stoppable,
41 public WorkerProcessLauncher::Delegate, 40 public WorkerProcessLauncher::Delegate,
42 public WtsConsoleObserver { 41 public WtsConsoleObserver {
43 public: 42 public:
44 // Constructs a WtsSessionProcessLauncher object. |stopped_callback| and 43 // Constructs a WtsSessionProcessLauncher object. |stopped_callback| and
45 // |main_message_loop| are passed to the undelying |Stoppable| implementation. 44 // |main_message_loop| are passed to the undelying |Stoppable| implementation.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 89
91 private: 90 private:
92 // Attempts to launch the host process in the current console session. 91 // Attempts to launch the host process in the current console session.
93 // Schedules next launch attempt if creation of the process fails for any 92 // Schedules next launch attempt if creation of the process fails for any
94 // reason. 93 // reason.
95 void LaunchProcess(); 94 void LaunchProcess();
96 95
97 // Called when the launcher reports the process to be stopped. 96 // Called when the launcher reports the process to be stopped.
98 void OnLauncherStopped(); 97 void OnLauncherStopped();
99 98
100 // Sends the Secure Attention Sequence to the session represented by
101 // |session_token_|.
102 void OnSendSasToConsole();
103
104 // |true| if this object is currently attached to the console session. 99 // |true| if this object is currently attached to the console session.
105 bool attached_; 100 bool attached_;
106 101
107 // Time of the last launch attempt. 102 // Time of the last launch attempt.
108 base::Time launch_time_; 103 base::Time launch_time_;
109 104
110 // Current backoff delay. 105 // Current backoff delay.
111 base::TimeDelta launch_backoff_; 106 base::TimeDelta launch_backoff_;
112 107
113 // Timer used to schedule the next attempt to launch the process. 108 // Timer used to schedule the next attempt to launch the process.
(...skipping 24 matching lines...) Expand all
138 kJobStopped 133 kJobStopped
139 }; 134 };
140 135
141 JobState job_state_; 136 JobState job_state_;
142 137
143 base::win::ScopedHandle worker_process_; 138 base::win::ScopedHandle worker_process_;
144 139
145 // The token to be used to launch a process in a different session. 140 // The token to be used to launch a process in a different session.
146 base::win::ScopedHandle session_token_; 141 base::win::ScopedHandle session_token_;
147 142
148 scoped_ptr<SasInjector> sas_injector_;
149
150 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher); 143 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessLauncher);
151 }; 144 };
152 145
153 } // namespace remoting 146 } // namespace remoting
154 147
155 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_LAUNCHER_H_ 148 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698