| 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_UNPRIVILEGED_PROCESS_DELEGATE_H_ | 5 #ifndef REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ |
| 6 #define REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ | 6 #define REMOTING_HOST_WIN_UNPRIVILEGED_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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 UnprivilegedProcessDelegate( | 34 UnprivilegedProcessDelegate( |
| 35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, | 35 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, |
| 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 37 scoped_ptr<CommandLine> target_command); | 37 scoped_ptr<CommandLine> target_command); |
| 38 virtual ~UnprivilegedProcessDelegate(); | 38 virtual ~UnprivilegedProcessDelegate(); |
| 39 | 39 |
| 40 // IPC::Sender implementation. | 40 // IPC::Sender implementation. |
| 41 virtual bool Send(IPC::Message* message) OVERRIDE; | 41 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 42 | 42 |
| 43 // WorkerProcessLauncher::Delegate implementation. | 43 // WorkerProcessLauncher::Delegate implementation. |
| 44 virtual void CloseChannel() OVERRIDE; |
| 44 virtual DWORD GetProcessId() const OVERRIDE; | 45 virtual DWORD GetProcessId() const OVERRIDE; |
| 45 virtual bool IsPermanentError(int failure_count) const OVERRIDE; | 46 virtual bool IsPermanentError(int failure_count) const OVERRIDE; |
| 46 virtual void KillProcess(DWORD exit_code) OVERRIDE; | 47 virtual void KillProcess(DWORD exit_code) OVERRIDE; |
| 47 virtual bool LaunchProcess( | 48 virtual bool LaunchProcess( |
| 48 IPC::Listener* delegate, | 49 IPC::Listener* delegate, |
| 49 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; | 50 base::win::ScopedHandle* process_exit_event_out) OVERRIDE; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 // The task runner all public methods of this class should be called on. | 53 // The task runner all public methods of this class should be called on. |
| 53 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 54 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 64 | 65 |
| 65 // The handle of the worker process, if launched. | 66 // The handle of the worker process, if launched. |
| 66 base::win::ScopedHandle worker_process_; | 67 base::win::ScopedHandle worker_process_; |
| 67 | 68 |
| 68 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate); | 69 DISALLOW_COPY_AND_ASSIGN(UnprivilegedProcessDelegate); |
| 69 }; | 70 }; |
| 70 | 71 |
| 71 } // namespace remoting | 72 } // namespace remoting |
| 72 | 73 |
| 73 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ | 74 #endif // REMOTING_HOST_WIN_UNPRIVILEGED_PROCESS_DELEGATE_H_ |
| OLD | NEW |