Chromium Code Reviews

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

Issue 2397753006: scheduler: Detect load RAIL mode (Closed)
Patch Set: Add fallback for missing FMP Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 45 matching lines...)
56 virtual void didStartLoading(unsigned long identifier) {} 56 virtual void didStartLoading(unsigned long identifier) {}
57 57
58 // Tells the scheduler a resource load has stopped. The scheduler may make 58 // Tells the scheduler a resource load has stopped. The scheduler may make
59 // policy decisions based on this. 59 // policy decisions based on this.
60 virtual void didStopLoading(unsigned long identifier) {} 60 virtual void didStopLoading(unsigned long identifier) {}
61 61
62 // Tells the scheduler if we are parsing a document on another thread. This 62 // Tells the scheduler if we are parsing a document on another thread. This
63 // tells the scheduler not to advance virtual time if it's using the 63 // tells the scheduler not to advance virtual time if it's using the
64 // DETERMINISTIC_LOADING policy. 64 // DETERMINISTIC_LOADING policy.
65 virtual void setDocumentParsingInBackground(bool) {} 65 virtual void setDocumentParsingInBackground(bool) {}
66
67 // Tells the scheduler that the first meaningful paint has occured for this
68 // frame.
69 virtual void onFirstMeaningfulPaint() {}
66 }; 70 };
67 71
68 } // namespace blink 72 } // namespace blink
69 73
70 #endif // WebFrameScheduler_h 74 #endif // WebFrameScheduler_h
OLDNEW

Powered by Google App Engine