| 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 #include "components/scheduler/renderer/web_view_scheduler_impl.h" | 5 #include "components/scheduler/renderer/web_view_scheduler_impl.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/scheduler/base/virtual_time_domain.h" | 8 #include "components/scheduler/base/virtual_time_domain.h" |
| 9 #include "components/scheduler/child/scheduler_tqm_delegate.h" | 9 #include "components/scheduler/child/scheduler_tqm_delegate.h" |
| 10 #include "components/scheduler/renderer/auto_advancing_virtual_time_domain.h" | 10 #include "components/scheduler/renderer/auto_advancing_virtual_time_domain.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 return; | 105 return; |
| 106 | 106 |
| 107 allow_virtual_time_to_advance_ = allow_virtual_time_to_advance; | 107 allow_virtual_time_to_advance_ = allow_virtual_time_to_advance; |
| 108 | 108 |
| 109 if (virtual_time_domain_) { | 109 if (virtual_time_domain_) { |
| 110 virtual_time_domain_->SetCanAdvanceVirtualTime( | 110 virtual_time_domain_->SetCanAdvanceVirtualTime( |
| 111 allow_virtual_time_to_advance); | 111 allow_virtual_time_to_advance); |
| 112 } | 112 } |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool WebViewSchedulerImpl::virtualTimeAllowedToAdvance() const { |
| 116 return allow_virtual_time_to_advance_; |
| 117 } |
| 118 |
| 115 } // namespace scheduler | 119 } // namespace scheduler |
| OLD | NEW |