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

Side by Side Diff: components/scheduler/base/real_time_domain.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another GYP fix Created 4 years, 5 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
6 #define COMPONENTS_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
7
8 #include <set>
9
10 #include "base/macros.h"
11 #include "components/scheduler/base/time_domain.h"
12 #include "components/scheduler/scheduler_export.h"
13
14 namespace scheduler {
15
16 class SCHEDULER_EXPORT RealTimeDomain : public TimeDomain {
17 public:
18 explicit RealTimeDomain(const char* tracing_category);
19 ~RealTimeDomain() override;
20
21 // TimeDomain implementation:
22 LazyNow CreateLazyNow() const override;
23 base::TimeTicks Now() const override;
24 base::TimeTicks ComputeDelayedRunTime(base::TimeTicks time_domain_now,
25 base::TimeDelta delay) const override;
26 bool MaybeAdvanceTime() override;
27 const char* GetName() const override;
28
29 protected:
30 void OnRegisterWithTaskQueueManager(
31 TaskQueueManager* task_queue_manager) override;
32 void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) override;
33 void AsValueIntoInternal(
34 base::trace_event::TracedValue* state) const override;
35
36 private:
37 const char* tracing_category_; // NOT OWNED
38 TaskQueueManager* task_queue_manager_; // NOT OWNED
39
40 DISALLOW_COPY_AND_ASSIGN(RealTimeDomain);
41 };
42
43 } // namespace scheduler
44
45 #endif // COMPONENTS_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698