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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.h

Issue 1378743002: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
index 670f1caa456a862620e1608c0923403229c6e215..066cb6b9bc9008345d908a8119bb1ec0b83bea95 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -110,7 +110,6 @@ public:
void didLoadResource();
void redirectReceived(Resource*, const ResourceResponse&);
void didFinishLoading(Resource*, double finishTime, int64_t encodedDataLength);
- void didChangeLoadingPriority(const Resource*, ResourceLoadPriority, int intraPriorityValue);
void didFailLoading(const Resource*, const ResourceError&);
void willSendRequest(unsigned long identifier, ResourceRequest&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo&);
void didReceiveResponse(const Resource*, const ResourceResponse&);
@@ -132,7 +131,7 @@ public:
void acceptDataFromThreadedReceiver(unsigned long identifier, const char* data, int dataLength, int encodedDataLength);
- ResourceLoadPriority loadPriority(Resource::Type, const FetchRequest&);
+ ResourceLoadPriority loadPriority(Resource::Type, const FetchRequest&, ResourcePriority::VisibilityStatus = ResourcePriority::NotVisible);
enum ResourceLoadStartType {
ResourceLoadingFromNetwork,
@@ -147,6 +146,8 @@ public:
bool clientDefersImage(const KURL&) const;
void determineRequestContext(ResourceRequest&, Resource::Type);
+ void updateAllImageResourcePriorities();
+
private:
friend class ResourceCacheValidationSuppressor;

Powered by Google App Engine
This is Rietveld 408576698