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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceClient.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/ResourceClient.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceClient.h b/third_party/WebKit/Source/core/fetch/ResourceClient.h
index ef337982907f6f35fe5ddc996e01d18bba7632de..d9c1a074452d9be6c20179e176b657b22993a8b0 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceClient.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceClient.h
@@ -26,6 +26,7 @@
#define ResourceClient_h
#include "core/CoreExport.h"
+#include "platform/network/ResourceLoadPriority.h"
#include "wtf/FastAllocBase.h"
#include "wtf/Forward.h"
@@ -50,6 +51,8 @@ public:
static ResourceClientType expectedType() { return BaseResourceType; }
virtual ResourceClientType resourceClientType() const { return expectedType(); }
+ virtual ResourcePriority computeResourcePriority() const { return ResourcePriority(); }
+
protected:
ResourceClient() { }
};
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698