Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Side by Side Diff: chromeos/process_proxy/process_proxy_registry.cc

Issue 2876013002: Add missing IWYU message_loop.h includes. (Closed)
Patch Set: fix upstream Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698