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

Side by Side Diff: third_party/WebKit/public/platform/WebScheduler.h

Issue 2387113002: reflow comments in public/platform/ (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebScheduler_h 5 #ifndef WebScheduler_h
6 #define WebScheduler_h 6 #define WebScheduler_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 #include "WebString.h" 9 #include "WebString.h"
10 #include "public/platform/WebTaskRunner.h" 10 #include "public/platform/WebTaskRunner.h"
(...skipping 20 matching lines...) Expand all
31 // which should be reported to the developer. 31 // which should be reported to the developer.
32 virtual void ReportIntervention(const WebString& message) = 0; 32 virtual void ReportIntervention(const WebString& message) = 0;
33 }; 33 };
34 34
35 virtual ~WebScheduler() {} 35 virtual ~WebScheduler() {}
36 36
37 // Called to prevent any more pending tasks from running. Must be called on 37 // Called to prevent any more pending tasks from running. Must be called on
38 // the associated WebThread. 38 // the associated WebThread.
39 virtual void shutdown() = 0; 39 virtual void shutdown() = 0;
40 40
41 // Returns true if there is high priority work pending on the associated WebTh read 41 // Returns true if there is high priority work pending on the associated
42 // and the caller should yield to let the scheduler service that work. 42 // WebThread and the caller should yield to let the scheduler service that
43 // Must be called on the associated WebThread. 43 // work. Must be called on the associated WebThread.
44 virtual bool shouldYieldForHighPriorityWork() = 0; 44 virtual bool shouldYieldForHighPriorityWork() = 0;
45 45
46 // Returns true if a currently running idle task could exceed its deadline 46 // Returns true if a currently running idle task could exceed its deadline
47 // without impacting user experience too much. This should only be used if 47 // without impacting user experience too much. This should only be used if
48 // there is a task which cannot be pre-empted and is likely to take longer 48 // there is a task which cannot be pre-empted and is likely to take longer
49 // than the largest expected idle task deadline. It should NOT be polled to 49 // than the largest expected idle task deadline. It should NOT be polled to
50 // check whether more work can be performed on the current idle task after 50 // check whether more work can be performed on the current idle task after
51 // its deadline has expired - post a new idle task for the continuation of 51 // its deadline has expired - post a new idle task for the continuation of
52 // the work in this case. 52 // the work in this case.
53 // Must be called from the associated WebThread. 53 // Must be called from the associated WebThread.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 void postIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>); 105 void postIdleTask(const WebTraceLocation&, std::unique_ptr<IdleTask>);
106 void postNonNestableIdleTask(const WebTraceLocation&, 106 void postNonNestableIdleTask(const WebTraceLocation&,
107 std::unique_ptr<IdleTask>); 107 std::unique_ptr<IdleTask>);
108 #endif 108 #endif
109 }; 109 };
110 110
111 } // namespace blink 111 } // namespace blink
112 112
113 #endif // WebScheduler_h 113 #endif // WebScheduler_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698