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

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

Issue 2184123002: Change VirtualTimePolicy::PAUSE_IF_NETWORK_FETCHES_PENDING (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months 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
« no previous file with comments | « third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, or a document is bein g parsed on a 56 // fetches associated any child WebFrameScheduler, or a document is bein g parsed on a
57 // background thread. The aim being to try and make loading (more) dete rministic. 57 // background thread. Initially virtual time is not allowed to advance u ntil we have seen
58 // at least one load. The aim being to try and make loading (more) deter ministic.
58 DETERMINISTIC_LOADING 59 DETERMINISTIC_LOADING
59 }; 60 };
60 61
61 // Sets the virtual time policy, which is applied imemdiatly to all child We bFrameSchedulers. 62 // Sets the virtual time policy, which is applied imemdiatly to all child We bFrameSchedulers.
62 virtual void setVirtualTimePolicy(VirtualTimePolicy) = 0; 63 virtual void setVirtualTimePolicy(VirtualTimePolicy) = 0;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif // WebViewScheduler 68 #endif // WebViewScheduler
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698