OLD | NEW |
---|---|
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
45 // Returns the parent WebViewScheduler. | 45 // Returns the parent WebViewScheduler. |
46 virtual WebViewScheduler* webViewScheduler() { return nullptr; } | 46 virtual WebViewScheduler* webViewScheduler() { return nullptr; } |
47 | 47 |
48 // Tells the scheduler a resource load has started. The scheduler may make | 48 // Tells the scheduler a resource load has started. The scheduler may make |
49 // policy decisions based on this. | 49 // policy decisions based on this. |
50 virtual void didStartLoading(unsigned long identifier) { } | 50 virtual void didStartLoading(unsigned long identifier) { } |
51 | 51 |
52 // Tells the scheduler a resource load has stopped. The scheduler may make | 52 // Tells the scheduler a resource load has stopped. The scheduler may make |
53 // policy decisions based on this. | 53 // policy decisions based on this. |
54 virtual void didStopLoading(unsigned long identifier) { } | 54 virtual void didStopLoading(unsigned long identifier) { } |
55 | |
56 // Tells the scheduler if we are parsing a document on another thread. This | |
57 // tells the scheduler not to advance virtual time if it's using the | |
58 // PAUSE_IF_NETWORK_FETCHES_PENDING policy. | |
59 virtual void setDocumentParsedInBackground(bool) { } | |
Mike West
2016/07/29 13:49:08
Nit: "parsed" reads to me as "a document has finis
alex clarke (OOO till 29th)
2016/07/29 14:07:27
Good point. Done.
| |
55 }; | 60 }; |
56 | 61 |
57 } // namespace blink | 62 } // namespace blink |
58 | 63 |
59 #endif // WebFrameScheduler_h | 64 #endif // WebFrameScheduler_h |
OLD | NEW |