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

Side by Side Diff: components/scheduler/renderer/web_view_scheduler_impl.cc

Issue 2109843003: Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test crash 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698