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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/child/idle_helper.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_ 5 #ifndef THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_
6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_ 6 #define THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "platform/scheduler/base/cancelable_closure_holder.h" 10 #include "platform/scheduler/base/cancelable_closure_holder.h"
11 #include "platform/scheduler/base/task_queue_selector.h" 11 #include "platform/scheduler/base/task_queue_selector.h"
12 #include "platform/scheduler/child/scheduler_helper.h" 12 #include "platform/scheduler/child/scheduler_helper.h"
13 #include "public/platform/WebCommon.h"
13 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h" 14 #include "public/platform/scheduler/child/single_thread_idle_task_runner.h"
14 #include "public/platform/WebCommon.h"
15 15
16 namespace blink { 16 namespace blink {
17 namespace scheduler { 17 namespace scheduler {
18 18
19 class SchedulerHelper; 19 class SchedulerHelper;
20 20
21 // The job of the IdleHelper is to run idle tasks when the system is otherwise 21 // The job of the IdleHelper is to run idle tasks when the system is otherwise
22 // idle. Idle tasks should be optional work, with no guarantee they will be run 22 // idle. Idle tasks should be optional work, with no guarantee they will be run
23 // at all. Idle tasks are subject to three levels of throttling: 23 // at all. Idle tasks are subject to three levels of throttling:
24 // 24 //
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 base::WeakPtr<IdleHelper> weak_idle_helper_ptr_; 240 base::WeakPtr<IdleHelper> weak_idle_helper_ptr_;
241 base::WeakPtrFactory<IdleHelper> weak_factory_; 241 base::WeakPtrFactory<IdleHelper> weak_factory_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(IdleHelper); 243 DISALLOW_COPY_AND_ASSIGN(IdleHelper);
244 }; 244 };
245 245
246 } // namespace scheduler 246 } // namespace scheduler
247 } // namespace blink 247 } // namespace blink
248 248
249 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_ 249 #endif // THIRD_PARTY_WEBKIT_SOURCE_PLATFORM_SCHEDULER_CHILD_IDLE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698