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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/real_time_domain.h

Issue 2572893002: [Reland] Dont post delayed DoWork for disabled queues. (Closed)
Patch Set: Fix compile Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 11 matching lines...) Expand all
22 22
23 // TimeDomain implementation: 23 // TimeDomain implementation:
24 LazyNow CreateLazyNow() const override; 24 LazyNow CreateLazyNow() const override;
25 base::TimeTicks Now() const override; 25 base::TimeTicks Now() const override;
26 base::Optional<base::TimeDelta> DelayTillNextTask(LazyNow* lazy_now) override; 26 base::Optional<base::TimeDelta> DelayTillNextTask(LazyNow* lazy_now) override;
27 const char* GetName() const override; 27 const char* GetName() const override;
28 28
29 protected: 29 protected:
30 void OnRegisterWithTaskQueueManager( 30 void OnRegisterWithTaskQueueManager(
31 TaskQueueManager* task_queue_manager) override; 31 TaskQueueManager* task_queue_manager) override;
32 void RequestWakeup(base::TimeTicks now, base::TimeDelta delay) override; 32 void RequestWakeupAt(base::TimeTicks now, base::TimeTicks run_time) override;
33 void CancelWakeupAt(base::TimeTicks run_time) override;
33 void AsValueIntoInternal( 34 void AsValueIntoInternal(
34 base::trace_event::TracedValue* state) const override; 35 base::trace_event::TracedValue* state) const override;
35 36
36 private: 37 private:
37 const char* tracing_category_; // NOT OWNED 38 const char* tracing_category_; // NOT OWNED
38 TaskQueueManager* task_queue_manager_; // NOT OWNED 39 TaskQueueManager* task_queue_manager_; // NOT OWNED
39 40
40 DISALLOW_COPY_AND_ASSIGN(RealTimeDomain); 41 DISALLOW_COPY_AND_ASSIGN(RealTimeDomain);
41 }; 42 };
42 43
43 } // namespace scheduler 44 } // namespace scheduler
44 } // namespace blink 45 } // namespace blink
45 46
46 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_ 47 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_REAL_TIME_DOMAIN_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/scheduler/base/real_time_domain.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698