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

Side by Side Diff: remoting/host/win/wts_session_process_delegate.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
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_DELEGATE_H_ 5 #ifndef REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 6 #define REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 25 matching lines...) Expand all
36 scoped_ptr<CommandLine> target, 36 scoped_ptr<CommandLine> target,
37 uint32 session_id, 37 uint32 session_id,
38 bool launch_elevated, 38 bool launch_elevated,
39 const std::string& channel_security); 39 const std::string& channel_security);
40 ~WtsSessionProcessDelegate(); 40 ~WtsSessionProcessDelegate();
41 41
42 // IPC::Sender implementation. 42 // IPC::Sender implementation.
43 virtual bool Send(IPC::Message* message) OVERRIDE; 43 virtual bool Send(IPC::Message* message) OVERRIDE;
44 44
45 // WorkerProcessLauncher::Delegate implementation. 45 // WorkerProcessLauncher::Delegate implementation.
46 virtual void CloseChannel() OVERRIDE;
46 virtual DWORD GetProcessId() const OVERRIDE; 47 virtual DWORD GetProcessId() const OVERRIDE;
47 virtual bool IsPermanentError(int failure_count) const OVERRIDE; 48 virtual bool IsPermanentError(int failure_count) const OVERRIDE;
48 virtual void KillProcess(DWORD exit_code) OVERRIDE; 49 virtual void KillProcess(DWORD exit_code) OVERRIDE;
49 virtual bool LaunchProcess( 50 virtual bool LaunchProcess(
50 IPC::Listener* delegate, 51 IPC::Listener* delegate,
51 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; 52 base::win::ScopedHandle* process_exit_event_out) OVERRIDE;
52 53
53 private: 54 private:
54 // The actual implementation resides in WtsSessionProcessDelegate::Core class. 55 // The actual implementation resides in WtsSessionProcessDelegate::Core class.
55 class Core; 56 class Core;
56 scoped_refptr<Core> core_; 57 scoped_refptr<Core> core_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); 59 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate);
59 }; 60 };
60 61
61 } // namespace remoting 62 } // namespace remoting
62 63
63 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ 64 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_
OLDNEW
« no previous file with comments | « remoting/host/win/worker_process_launcher_unittest.cc ('k') | remoting/host/win/wts_session_process_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698