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

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

Issue 12545006: The worker process launcher can now ask the worker to crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 9 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
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SESSION_WIN_H_ 5 #ifndef REMOTING_HOST_DESKTOP_SESSION_WIN_H_
6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_ 6 #define REMOTING_HOST_DESKTOP_SESSION_WIN_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.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"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void OnSessionAttached(uint32 session_id) OVERRIDE; 60 virtual void OnSessionAttached(uint32 session_id) OVERRIDE;
61 virtual void OnSessionDetached() OVERRIDE; 61 virtual void OnSessionDetached() OVERRIDE;
62 62
63 private: 63 private:
64 // ChromotingDesktopDaemonMsg_DesktopAttached handler. 64 // ChromotingDesktopDaemonMsg_DesktopAttached handler.
65 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe); 65 void OnDesktopSessionAgentAttached(IPC::PlatformFileForTransit desktop_pipe);
66 66
67 // ChromotingDesktopDaemonMsg_InjectSas handler. 67 // ChromotingDesktopDaemonMsg_InjectSas handler.
68 void OnInjectSas(); 68 void OnInjectSas();
69 69
70 // Restarts the desktop process. 70 // Requests the desktop process to crash.
71 void RestartDesktopProcess(const tracked_objects::Location& location); 71 void CrashDesktopProcess(const tracked_objects::Location& location);
72 72
73 // Task runner on which public methods of this class should be called. 73 // Task runner on which public methods of this class should be called.
74 scoped_refptr<AutoThreadTaskRunner> main_task_runner_; 74 scoped_refptr<AutoThreadTaskRunner> main_task_runner_;
75 75
76 // Message loop used by the IPC channel. 76 // Message loop used by the IPC channel.
77 scoped_refptr<AutoThreadTaskRunner> io_task_runner_; 77 scoped_refptr<AutoThreadTaskRunner> io_task_runner_;
78 78
79 // Contains the full path to the desktop binary. 79 // Contains the full path to the desktop binary.
80 base::FilePath desktop_binary_; 80 base::FilePath desktop_binary_;
81 81
82 // Handle of the desktop process. 82 // Handle of the desktop process.
83 base::win::ScopedHandle desktop_process_; 83 base::win::ScopedHandle desktop_process_;
84 84
85 // Launches and monitors the desktop process. 85 // Launches and monitors the desktop process.
86 scoped_ptr<WorkerProcessLauncher> launcher_; 86 scoped_ptr<WorkerProcessLauncher> launcher_;
87 87
88 // Pointer used to unsubscribe from session attach and detach events. 88 // Pointer used to unsubscribe from session attach and detach events.
89 WtsTerminalMonitor* monitor_; 89 WtsTerminalMonitor* monitor_;
90 90
91 scoped_ptr<SasInjector> sas_injector_; 91 scoped_ptr<SasInjector> sas_injector_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin); 93 DISALLOW_COPY_AND_ASSIGN(DesktopSessionWin);
94 }; 94 };
95 95
96 } // namespace remoting 96 } // namespace remoting
97 97
98 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_ 98 #endif // REMOTING_HOST_DESKTOP_SESSION_WIN_H_
OLDNEW
« no previous file with comments | « remoting/host/desktop_process_unittest.cc ('k') | remoting/host/desktop_session_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698