| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Implements logic for launching and monitoring a worker process in a different | 29 // Implements logic for launching and monitoring a worker process in a different |
| 30 // session. | 30 // session. |
| 31 class WtsSessionProcessDelegate | 31 class WtsSessionProcessDelegate |
| 32 : public base::NonThreadSafe, | 32 : public base::NonThreadSafe, |
| 33 public WorkerProcessLauncher::Delegate { | 33 public WorkerProcessLauncher::Delegate { |
| 34 public: | 34 public: |
| 35 WtsSessionProcessDelegate( | 35 WtsSessionProcessDelegate( |
| 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, | 36 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, |
| 37 std::unique_ptr<base::CommandLine> target, | 37 std::unique_ptr<base::CommandLine> target, |
| 38 bool launch_elevated, | 38 bool launch_elevated, |
| 39 const std::string& channel_security); | 39 const std::string& channel_security, |
| 40 const std::string& new_process_security); |
| 40 ~WtsSessionProcessDelegate() override; | 41 ~WtsSessionProcessDelegate() override; |
| 41 | 42 |
| 42 // Initializes the object returning true on success. | 43 // Initializes the object returning true on success. |
| 43 bool Initialize(uint32_t session_id); | 44 bool Initialize(uint32_t session_id); |
| 44 | 45 |
| 45 // WorkerProcessLauncher::Delegate implementation. | 46 // WorkerProcessLauncher::Delegate implementation. |
| 46 void LaunchProcess(WorkerProcessLauncher* event_handler) override; | 47 void LaunchProcess(WorkerProcessLauncher* event_handler) override; |
| 47 void Send(IPC::Message* message) override; | 48 void Send(IPC::Message* message) override; |
| 48 void CloseChannel() override; | 49 void CloseChannel() override; |
| 49 void KillProcess() override; | 50 void KillProcess() override; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 // The actual implementation resides in WtsSessionProcessDelegate::Core class. | 53 // The actual implementation resides in WtsSessionProcessDelegate::Core class. |
| 53 class Core; | 54 class Core; |
| 54 scoped_refptr<Core> core_; | 55 scoped_refptr<Core> core_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(WtsSessionProcessDelegate); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace remoting | 60 } // namespace remoting |
| 60 | 61 |
| 61 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ | 62 #endif // REMOTING_HOST_WIN_WTS_SESSION_PROCESS_DELEGATE_H_ |
| OLD | NEW |