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

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

Issue 2397753006: scheduler: Detect load RAIL mode (Closed)
Patch Set: Rebased Created 4 years 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 WebFrameScheduler_h 5 #ifndef WebFrameScheduler_h
6 #define WebFrameScheduler_h 6 #define WebFrameScheduler_h
7 7
8 #include "WebCommon.h" 8 #include "WebCommon.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual void didStartLoading(unsigned long identifier) {} 60 virtual void didStartLoading(unsigned long identifier) {}
61 61
62 // Tells the scheduler a resource load has stopped. The scheduler may make 62 // Tells the scheduler a resource load has stopped. The scheduler may make
63 // policy decisions based on this. 63 // policy decisions based on this.
64 virtual void didStopLoading(unsigned long identifier) {} 64 virtual void didStopLoading(unsigned long identifier) {}
65 65
66 // Tells the scheduler if we are parsing a document on another thread. This 66 // Tells the scheduler if we are parsing a document on another thread. This
67 // tells the scheduler not to advance virtual time if it's using the 67 // tells the scheduler not to advance virtual time if it's using the
68 // DETERMINISTIC_LOADING policy. 68 // DETERMINISTIC_LOADING policy.
69 virtual void setDocumentParsingInBackground(bool) {} 69 virtual void setDocumentParsingInBackground(bool) {}
70
71 // Tells the scheduler that the first meaningful paint has occured for this
72 // frame.
73 virtual void onFirstMeaningfulPaint() {}
70 }; 74 };
71 75
72 } // namespace blink 76 } // namespace blink
73 77
74 #endif // WebFrameScheduler_h 78 #endif // WebFrameScheduler_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h ('k') | third_party/WebKit/public/platform/WebScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698