summaryrefslogtreecommitdiff
path: root/chromium/components/scheduler/base/virtual_time_domain.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/components/scheduler/base/virtual_time_domain.cc
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/scheduler/base/virtual_time_domain.cc')
-rw-r--r--chromium/components/scheduler/base/virtual_time_domain.cc64
1 files changed, 0 insertions, 64 deletions
diff --git a/chromium/components/scheduler/base/virtual_time_domain.cc b/chromium/components/scheduler/base/virtual_time_domain.cc
deleted file mode 100644
index db9c4035b29..00000000000
--- a/chromium/components/scheduler/base/virtual_time_domain.cc
+++ /dev/null
@@ -1,64 +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/virtual_time_domain.h"
-
-#include "base/bind.h"
-#include "components/scheduler/base/task_queue_impl.h"
-#include "components/scheduler/base/task_queue_manager.h"
-#include "components/scheduler/base/task_queue_manager_delegate.h"
-
-namespace scheduler {
-
-VirtualTimeDomain::VirtualTimeDomain(TimeDomain::Observer* observer,
- base::TimeTicks initial_time)
- : TimeDomain(observer), now_(initial_time), task_queue_manager_(nullptr) {}
-
-VirtualTimeDomain::~VirtualTimeDomain() {}
-
-void VirtualTimeDomain::OnRegisterWithTaskQueueManager(
- TaskQueueManager* task_queue_manager) {
- task_queue_manager_ = task_queue_manager;
- DCHECK(task_queue_manager_);
-}
-
-LazyNow VirtualTimeDomain::CreateLazyNow() const {
- base::AutoLock lock(lock_);
- return LazyNow(now_);
-}
-
-base::TimeTicks VirtualTimeDomain::Now() const {
- base::AutoLock lock(lock_);
- return now_;
-}
-
-void VirtualTimeDomain::RequestWakeup(base::TimeTicks now,
- base::TimeDelta delay) {
- // We don't need to do anything here because the caller of AdvanceTo is
- // responsible for calling TaskQueueManager::MaybeScheduleImmediateWork if
- // needed.
-}
-
-bool VirtualTimeDomain::MaybeAdvanceTime() {
- return false;
-}
-
-void VirtualTimeDomain::AsValueIntoInternal(
- base::trace_event::TracedValue* state) const {}
-
-void VirtualTimeDomain::AdvanceTo(base::TimeTicks now) {
- base::AutoLock lock(lock_);
- DCHECK_GE(now, now_);
- now_ = now;
-}
-
-void VirtualTimeDomain::RequestDoWork() {
- task_queue_manager_->MaybeScheduleImmediateWork(FROM_HERE);
-}
-
-const char* VirtualTimeDomain::GetName() const {
- return "VirtualTimeDomain";
-}
-
-} // namespace scheduler