| 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 #include "chromeos/process_proxy/process_proxy_registry.h" | 5 #include "chromeos/process_proxy/process_proxy_registry.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" |
| 8 | 9 |
| 9 namespace chromeos { | 10 namespace chromeos { |
| 10 | 11 |
| 11 namespace { | 12 namespace { |
| 12 | 13 |
| 13 const char kWatcherThreadName[] = "ProcessWatcherThread"; | 14 const char kWatcherThreadName[] = "ProcessWatcherThread"; |
| 14 | 15 |
| 15 const char kStdoutOutputType[] = "stdout"; | 16 const char kStdoutOutputType[] = "stdout"; |
| 16 const char kExitOutputType[] = "exit"; | 17 const char kExitOutputType[] = "exit"; |
| 17 | 18 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 169 |
| 169 // TODO(tbarzic): Change process output watcher to watch for fd readability on | 170 // TODO(tbarzic): Change process output watcher to watch for fd readability on |
| 170 // FILE thread, and move output reading to worker thread instead of | 171 // FILE thread, and move output reading to worker thread instead of |
| 171 // spinning a new thread. | 172 // spinning a new thread. |
| 172 watcher_thread_.reset(new base::Thread(kWatcherThreadName)); | 173 watcher_thread_.reset(new base::Thread(kWatcherThreadName)); |
| 173 return watcher_thread_->StartWithOptions( | 174 return watcher_thread_->StartWithOptions( |
| 174 base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); | 175 base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); |
| 175 } | 176 } |
| 176 | 177 |
| 177 } // namespace chromeos | 178 } // namespace chromeos |
| OLD | NEW |