| 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 29 matching lines...) Expand all Loading... |
| 40 // are known should be posted to this task runner; for example user | 40 // are known should be posted to this task runner; for example user |
| 41 // JavaScript is discouraged. WebFrameScheduler owns the returned | 41 // JavaScript is discouraged. WebFrameScheduler owns the returned |
| 42 // WebTaskRunner. | 42 // WebTaskRunner. |
| 43 virtual WebTaskRunner* unthrottledTaskRunner() { return nullptr; } | 43 virtual WebTaskRunner* unthrottledTaskRunner() { return nullptr; } |
| 44 | 44 |
| 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 incrementPendingResourceLoadCount() { } | 50 virtual void didStartLoading(unsigned long identifier) { } |
| 51 | 51 |
| 52 // Tells the scheduler a resource load has started. 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 decrementPendingResourceLoadCount() { } | 54 virtual void didStopLoading(unsigned long identifier) { } |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace blink | 57 } // namespace blink |
| 58 | 58 |
| 59 #endif // WebFrameScheduler_h | 59 #endif // WebFrameScheduler_h |
| OLD | NEW |