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

Unified Diff: base/task_scheduler/task_scheduler_impl.h

Issue 2816653003: Do not take a MessageLoopForIO in the constructor of TaskTrackerPosix. (Closed)
Patch Set: rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task_scheduler/task_scheduler_impl.h
diff --git a/base/task_scheduler/task_scheduler_impl.h b/base/task_scheduler/task_scheduler_impl.h
index c91865b8c6b7f41c21a33f0cf0db9060456de1b6..83783c6ffdb034ca6f77c331b7ed0287ab80c4cd 100644
--- a/base/task_scheduler/task_scheduler_impl.h
+++ b/base/task_scheduler/task_scheduler_impl.h
@@ -17,10 +17,15 @@
#include "base/task_scheduler/scheduler_worker_pool_impl.h"
#include "base/task_scheduler/sequence.h"
#include "base/task_scheduler/task_scheduler.h"
+#include "base/task_scheduler/task_tracker.h"
#include "base/task_scheduler/task_traits.h"
#include "base/threading/thread.h"
#include "build/build_config.h"
+#if defined(OS_POSIX) && !defined(OS_NACL_SFI)
+#include "base/task_scheduler/task_tracker_posix.h"
+#endif
+
namespace base {
class HistogramBase;
@@ -29,7 +34,6 @@ namespace internal {
class DelayedTaskManager;
class SchedulerSingleThreadTaskRunnerManager;
-class TaskTracker;
// Default TaskScheduler implementation. This class is thread-safe.
class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
@@ -84,7 +88,11 @@ class BASE_EXPORT TaskSchedulerImpl : public TaskScheduler {
const std::string name_;
Thread service_thread_;
- std::unique_ptr<TaskTracker> task_tracker_;
+#if defined(OS_POSIX) && !defined(OS_NACL_SFI)
+ TaskTrackerPosix task_tracker_;
+#else
+ TaskTracker task_tracker_;
+#endif
std::unique_ptr<DelayedTaskManager> delayed_task_manager_;
std::unique_ptr<SchedulerSingleThreadTaskRunnerManager>
single_thread_task_runner_manager_;
« no previous file with comments | « no previous file | base/task_scheduler/task_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698