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

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

Issue 1121263002: Add Accept-CH meta http-equiv support to the preloader. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review nits Created 5 years, 7 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: Source/core/fetch/FetchRequest.h
diff --git a/Source/core/fetch/FetchRequest.h b/Source/core/fetch/FetchRequest.h
index 184c6d558111aeae6293fe0257131e65f0100eea..e2d8e576dc19d4b9d87df65aff824510b12c7c5f 100644
--- a/Source/core/fetch/FetchRequest.h
+++ b/Source/core/fetch/FetchRequest.h
@@ -27,6 +27,7 @@
#define FetchRequest_h
#include "core/CoreExport.h"
+#include "core/fetch/ClientHintsPreferences.h"
#include "core/fetch/FetchInitiatorInfo.h"
#include "core/fetch/ResourceLoaderOptions.h"
#include "platform/network/ResourceLoadPriority.h"
@@ -69,6 +70,7 @@ public:
void setForPreload(bool forPreload) { m_forPreload = forPreload; }
DeferOption defer() const { return m_defer; }
ResourceWidth resourceWidth() const { return m_resourceWidth; }
+ const ClientHintsPreferences& clientHintsPreferences() const { return m_clientHintPreferences; }
void setDefer(DeferOption defer) { m_defer = defer; }
void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurityPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, CredentialRequest);
@@ -77,6 +79,7 @@ public:
OriginRestriction originRestriction() const { return m_originRestriction; }
void setOriginRestriction(OriginRestriction restriction) { m_originRestriction = restriction; }
void setResourceWidth(ResourceWidth);
+ void setClientHintsPreferences(ClientHintsPreferences& preferences) { m_clientHintPreferences.set(preferences); }
private:
ResourceRequest m_resourceRequest;
@@ -87,6 +90,7 @@ private:
DeferOption m_defer;
OriginRestriction m_originRestriction;
ResourceWidth m_resourceWidth;
+ ClientHintsPreferences m_clientHintPreferences;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698