OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |