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

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

Issue 2192493002: Let blink scheduler know when background parsing a document (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698