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

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

Issue 1304063016: Refactor the API for setting dynamic resource load priorities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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
« no previous file with comments | « Source/core/fetch/ResourceClient.h ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.h
diff --git a/Source/core/fetch/ResourceFetcher.h b/Source/core/fetch/ResourceFetcher.h
index 670f1caa456a862620e1608c0923403229c6e215..066cb6b9bc9008345d908a8119bb1ec0b83bea95 100644
--- a/Source/core/fetch/ResourceFetcher.h
+++ b/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;
« no previous file with comments | « Source/core/fetch/ResourceClient.h ('k') | Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698