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 BASE_TASK_SEQUENCE_MANAGER_REAL_TIME_DOMAIN_H_ 6 #define BASE_TASK_SEQUENCE_MANAGER_REAL_TIME_DOMAIN_H_ 7 8 #include "base/base_export.h" 9 #include "base/macros.h" 10 #include "base/task/sequence_manager/time_domain.h" 11 12 namespace base { 13 namespace sequence_manager { 14 namespace internal { 15 16 class BASE_EXPORT RealTimeDomain : public TimeDomain { 17 public: 18 RealTimeDomain(); 19 ~RealTimeDomain() override; 20 21 // TimeDomain implementation: 22 LazyNow CreateLazyNow() const override; 23 TimeTicks Now() const override; 24 Optional<TimeDelta> DelayTillNextTask(LazyNow* lazy_now) override; 25 26 protected: 27 const char* GetName() const override; 28 29 private: 30 DISALLOW_COPY_AND_ASSIGN(RealTimeDomain); 31 }; 32 33 } // namespace internal 34 } // namespace sequence_manager 35 } // namespace base 36 37 #endif // BASE_TASK_SEQUENCE_MANAGER_REAL_TIME_DOMAIN_H_ 38