| 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 #include "services/native_support/process_controller_impl.h" | 5 #include "services/native_support/process_controller_impl.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <signal.h> | 8 #include <signal.h> |
| 9 #include <sys/types.h> | 9 #include <sys/types.h> |
| 10 | 10 |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/task_runner.h" | 18 #include "base/task_runner.h" |
| 19 #include "base/threading/simple_thread.h" | 19 #include "base/threading/simple_thread.h" |
| 20 #include "mojo/services/files/public/interfaces/types.mojom.h" | 20 #include "mojo/services/files/interfaces/types.mojom.h" |
| 21 #include "services/native_support/process_io_redirection.h" | 21 #include "services/native_support/process_io_redirection.h" |
| 22 | 22 |
| 23 namespace native_support { | 23 namespace native_support { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 void WaitForProcess( | 27 void WaitForProcess( |
| 28 base::Process process, | 28 base::Process process, |
| 29 scoped_refptr<base::TaskRunner> done_runner, | 29 scoped_refptr<base::TaskRunner> done_runner, |
| 30 const base::Callback<void(mojo::files::Error, int32_t)>& done_callback) { | 30 const base::Callback<void(mojo::files::Error, int32_t)>& done_callback) { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 return mojo::files::Error::PERMISSION_DENIED; | 113 return mojo::files::Error::PERMISSION_DENIED; |
| 114 case ESRCH: | 114 case ESRCH: |
| 115 return mojo::files::Error::UNAVAILABLE; | 115 return mojo::files::Error::UNAVAILABLE; |
| 116 default: | 116 default: |
| 117 break; | 117 break; |
| 118 } | 118 } |
| 119 return mojo::files::Error::UNKNOWN; | 119 return mojo::files::Error::UNKNOWN; |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace native_support | 122 } // namespace native_support |
| OLD | NEW |