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

Unified Diff: components/scheduler/base/real_time_domain.cc

Issue 1461143003: Revert of Adds TimeDomains to the TaskQueueManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/scheduler/base/real_time_domain.cc
diff --git a/components/scheduler/base/real_time_domain.cc b/components/scheduler/base/real_time_domain.cc
deleted file mode 100644
index 8a57a0415cf3181d1d2117a587b3c7009459417e..0000000000000000000000000000000000000000
--- a/components/scheduler/base/real_time_domain.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/scheduler/base/real_time_domain.h"
-
-#include "base/bind.h"
-#include "components/scheduler/base/task_queue_impl.h"
-#include "components/scheduler/base/task_queue_manager_delegate.h"
-
-namespace scheduler {
-
-RealTimeDomain::RealTimeDomain(
- TaskQueueManagerDelegate* task_queue_manager_delegate,
- base::Closure do_work_closure)
- : task_queue_manager_delegate_(task_queue_manager_delegate),
- do_work_closure_(do_work_closure) {
- DCHECK(task_queue_manager_delegate_);
-}
-
-RealTimeDomain::~RealTimeDomain() {}
-
-LazyNow RealTimeDomain::CreateLazyNow() {
- return LazyNow(task_queue_manager_delegate_);
-}
-
-void RealTimeDomain::RequestWakeup(base::TimeDelta delay) {
- task_queue_manager_delegate_->PostDelayedTask(FROM_HERE, do_work_closure_,
- delay);
-}
-
-bool RealTimeDomain::MaybeAdvanceTime() {
- return false;
-}
-
-void RealTimeDomain::AsValueIntoInternal(
- base::trace_event::TracedValue* state) const {}
-
-const char* RealTimeDomain::GetName() const {
- return "RealTimeDomain";
-}
-
-} // namespace scheduler
« no previous file with comments | « components/scheduler/base/real_time_domain.h ('k') | components/scheduler/base/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698