| OLD | NEW |
| 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_TIME_DOMAIN_H_ | 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ | 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 void SetHeapHandle(HeapHandle handle) { | 129 void SetHeapHandle(HeapHandle handle) { |
| 130 DCHECK(handle.IsValid()); | 130 DCHECK(handle.IsValid()); |
| 131 queue->set_heap_handle(handle); | 131 queue->set_heap_handle(handle); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void ClearHeapHandle() { | 134 void ClearHeapHandle() { |
| 135 DCHECK(queue->heap_handle().IsValid()); | 135 DCHECK(queue->heap_handle().IsValid()); |
| 136 queue->set_heap_handle(HeapHandle()); | 136 queue->set_heap_handle(HeapHandle()); |
| 137 | 137 |
| 138 DCHECK(queue->scheduled_time_domain_wake_up()); | 138 DCHECK_NE(queue->scheduled_time_domain_wake_up(), base::TimeTicks()); |
| 139 queue->SetScheduledTimeDomainWakeUp(base::nullopt); | 139 queue->set_scheduled_time_domain_wake_up(base::TimeTicks()); |
| 140 } | 140 } |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 IntrusiveHeap<ScheduledDelayedWakeUp> delayed_wake_up_queue_; | 143 IntrusiveHeap<ScheduledDelayedWakeUp> delayed_wake_up_queue_; |
| 144 | 144 |
| 145 base::ThreadChecker main_thread_checker_; | 145 base::ThreadChecker main_thread_checker_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(TimeDomain); | 147 DISALLOW_COPY_AND_ASSIGN(TimeDomain); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace scheduler | 150 } // namespace scheduler |
| 151 } // namespace blink | 151 } // namespace blink |
| 152 | 152 |
| 153 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ | 153 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_BASE_TIME_DOMAIN_H_ |
| OLD | NEW |