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

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: Better names / cleanup Created 5 years, 2 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 26cdfdc6a0dc12f099de11f598fa60cf2d51192e..d082cf7c1ffcd76b01abed8fe0a4ee79d3a2681d 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,
@@ -149,6 +148,8 @@ public:
WebTaskRunner* loadingTaskRunner();
+ void updateAllImageResourcePriorities();
+
private:
friend class ResourceCacheValidationSuppressor;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceClient.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698