| 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 WebViewScheduler_h | 5 #ifndef WebViewScheduler_h |
| 6 #define WebViewScheduler_h | 6 #define WebViewScheduler_h |
| 7 | 7 |
| 8 #include "WebCommon.h" | 8 #include "WebCommon.h" |
| 9 #include "public/platform/BlameContext.h" | 9 #include "public/platform/BlameContext.h" |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // timer may fire. NOTE Tasks will be run in time order (as usual). | 46 // timer may fire. NOTE Tasks will be run in time order (as usual). |
| 47 ADVANCE, | 47 ADVANCE, |
| 48 | 48 |
| 49 // In this policy virtual time is not allowed to advance. Delayed tasks
posted to | 49 // In this policy virtual time is not allowed to advance. Delayed tasks
posted to |
| 50 // WebTaskRunners owned by any child WebFrameSchedulers will be paused,
unless their | 50 // WebTaskRunners owned by any child WebFrameSchedulers will be paused,
unless their |
| 51 // scheduled run time is less than or equal to the current virtual time.
Note non-delayed | 51 // scheduled run time is less than or equal to the current virtual time.
Note non-delayed |
| 52 // tasks will run as normal. | 52 // tasks will run as normal. |
| 53 PAUSE, | 53 PAUSE, |
| 54 | 54 |
| 55 // In this policy virtual time is allowed to advance unless there are pe
nding network | 55 // In this policy virtual time is allowed to advance unless there are pe
nding network |
| 56 // fetches associated any child WebFrameScheduler. | 56 // fetches associated any child WebFrameScheduler. Initially virtual ti
me is not allowed |
| 57 // to advance until we have seen at least one load. |
| 57 PAUSE_IF_NETWORK_FETCHES_PENDING | 58 PAUSE_IF_NETWORK_FETCHES_PENDING |
| 58 }; | 59 }; |
| 59 | 60 |
| 60 // Sets the virtual time policy, which is applied imemdiatly to all child We
bFrameSchedulers. | 61 // Sets the virtual time policy, which is applied imemdiatly to all child We
bFrameSchedulers. |
| 61 virtual void setVirtualTimePolicy(VirtualTimePolicy) = 0; | 62 virtual void setVirtualTimePolicy(VirtualTimePolicy) = 0; |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace blink | 65 } // namespace blink |
| 65 | 66 |
| 66 #endif // WebViewScheduler | 67 #endif // WebViewScheduler |
| OLD | NEW |