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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/renderer/throttling_helper.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 #ifndef COMPONENTS_SCHEDULER_RENDERER_THROTTLING_HELPER_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_THROTTLING_HELPER_ H_
6 #define COMPONENTS_SCHEDULER_RENDERER_THROTTLING_HELPER_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_THROTTLING_HELPER_ H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/scheduler/base/cancelable_closure_holder.h" 11 #include "platform/scheduler/base/cancelable_closure_holder.h"
12 #include "components/scheduler/base/time_domain.h" 12 #include "platform/scheduler/base/time_domain.h"
13 #include "components/scheduler/scheduler_export.h" 13 #include "public/platform/WebViewScheduler.h"
14 #include "third_party/WebKit/public/platform/WebViewScheduler.h"
15 14
15 namespace blink {
16 namespace scheduler { 16 namespace scheduler {
17 17
18 class RendererSchedulerImpl; 18 class RendererSchedulerImpl;
19 class ThrottledTimeDomain; 19 class ThrottledTimeDomain;
20 class WebFrameSchedulerImpl; 20 class WebFrameSchedulerImpl;
21 21
22 class SCHEDULER_EXPORT ThrottlingHelper : public TimeDomain::Observer { 22 class BLINK_PLATFORM_EXPORT ThrottlingHelper : public TimeDomain::Observer {
23 public: 23 public:
24 ThrottlingHelper(RendererSchedulerImpl* renderer_scheduler, 24 ThrottlingHelper(RendererSchedulerImpl* renderer_scheduler,
25 const char* tracing_category); 25 const char* tracing_category);
26 26
27 ~ThrottlingHelper() override; 27 ~ThrottlingHelper() override;
28 28
29 // TimeDomain::Observer implementation: 29 // TimeDomain::Observer implementation:
30 void OnTimeDomainHasImmediateWork() override; 30 void OnTimeDomainHasImmediateWork() override;
31 void OnTimeDomainHasDelayedWork() override; 31 void OnTimeDomainHasDelayedWork() override;
32 32
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 CancelableClosureHolder pump_throttled_tasks_closure_; 93 CancelableClosureHolder pump_throttled_tasks_closure_;
94 base::TimeTicks pending_pump_throttled_tasks_runtime_; 94 base::TimeTicks pending_pump_throttled_tasks_runtime_;
95 bool virtual_time_; 95 bool virtual_time_;
96 96
97 base::WeakPtrFactory<ThrottlingHelper> weak_factory_; 97 base::WeakPtrFactory<ThrottlingHelper> weak_factory_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(ThrottlingHelper); 99 DISALLOW_COPY_AND_ASSIGN(ThrottlingHelper);
100 }; 100 };
101 101
102 } // namespace scheduler 102 } // namespace scheduler
103 } // namespace blink
103 104
104 #endif // COMPONENTS_SCHEDULER_RENDERER_THROTTLING_HELPER_H_ 105 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_RENDERER_THROTTLING_HELP ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698