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

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

Issue 2072613002: Make ResourceLoadPriority calculation simpler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index e0720173df3223230dc053078dee638d709c5f29..fda9bdf1ab6ed323684a8ac1739183281ef556fb 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -32,7 +32,6 @@
#include "core/fetch/IntegrityMetadata.h"
#include "core/fetch/ResourceLoaderOptions.h"
#include "platform/CrossOriginAttributeValue.h"
-#include "platform/network/ResourceLoadPriority.h"
#include "platform/network/ResourceRequest.h"
#include "wtf/Allocator.h"
#include "wtf/text/AtomicString.h"
@@ -58,7 +57,7 @@ public:
}
};
- explicit FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String(), ResourceLoadPriority = ResourceLoadPriorityUnresolved);
+ FetchRequest(const ResourceRequest&, const AtomicString& initiator, const String& charset = String());
FetchRequest(const ResourceRequest&, const AtomicString& initiator, const ResourceLoaderOptions&);
FetchRequest(const ResourceRequest&, const FetchInitiatorInfo&);
~FetchRequest();
@@ -71,10 +70,6 @@ public:
void setCharset(const String& charset) { m_charset = charset; }
const ResourceLoaderOptions& options() const { return m_options; }
- void setOptions(const ResourceLoaderOptions& options) { m_options = options; }
-
- ResourceLoadPriority priority() const { return m_priority; }
- void setPriority(ResourceLoadPriority priority) { m_priority = priority; }
DeferOption defer() const { return m_defer; }
void setDefer(DeferOption defer) { m_defer = defer; }
@@ -102,11 +97,12 @@ public:
String contentSecurityPolicyNonce() const { return m_options.contentSecurityPolicyNonce; }
void setContentSecurityPolicyNonce(const String& nonce) { m_options.contentSecurityPolicyNonce = nonce; }
+ void makeSynchronous();
+
private:
ResourceRequest m_resourceRequest;
String m_charset;
ResourceLoaderOptions m_options;
- ResourceLoadPriority m_priority;
bool m_forPreload;
bool m_linkPreload;
double m_preloadDiscoveryTime;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698