| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ | 5 #ifndef SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ |
| 6 #define SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ | 6 #define SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/process/process.h" | 13 #include "base/process/process.h" |
| 14 #include "base/task_runner.h" | 14 #include "base/task_runner.h" |
| 15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
| 16 #include "mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 17 #include "mojo/services/files/interfaces/file.mojom.h" | 17 #include "mojo/services/files/interfaces/file.mojom.h" |
| 18 #include "mojo/services/files/interfaces/types.mojom.h" | 18 #include "mojo/services/files/interfaces/types.mojom.h" |
| 19 #include "mojo/services/native_support/public/interfaces/process.mojom.h" | 19 #include "mojo/services/native_support/interfaces/process.mojom.h" |
| 20 | 20 |
| 21 namespace native_support { | 21 namespace native_support { |
| 22 | 22 |
| 23 class ProcessIORedirection; | 23 class ProcessIORedirection; |
| 24 | 24 |
| 25 class ProcessControllerImpl : public ProcessController { | 25 class ProcessControllerImpl : public ProcessController { |
| 26 public: | 26 public: |
| 27 ProcessControllerImpl( | 27 ProcessControllerImpl( |
| 28 scoped_refptr<base::TaskRunner> worker_runner, | 28 scoped_refptr<base::TaskRunner> worker_runner, |
| 29 mojo::InterfaceRequest<ProcessController> request, | 29 mojo::InterfaceRequest<ProcessController> request, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 48 std::unique_ptr<ProcessIORedirection> process_io_redirection_; | 48 std::unique_ptr<ProcessIORedirection> process_io_redirection_; |
| 49 | 49 |
| 50 base::WeakPtrFactory<ProcessControllerImpl> weak_factory_; | 50 base::WeakPtrFactory<ProcessControllerImpl> weak_factory_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(ProcessControllerImpl); | 52 DISALLOW_COPY_AND_ASSIGN(ProcessControllerImpl); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace native_support | 55 } // namespace native_support |
| 56 | 56 |
| 57 #endif // SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ | 57 #endif // SERVICES_NATIVE_SUPPORT_PROCESS_CONTROLLER_IMPL_H_ |
| OLD | NEW |