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

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

Issue 1287783003: Make ClientHintsPreferences class work like a class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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/ClientHintsPreferencesTest.cpp ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/FetchRequest.h
diff --git a/Source/core/fetch/FetchRequest.h b/Source/core/fetch/FetchRequest.h
index 5c690994188579350c272e2369eb6377acab6351..bf47dac8c15a202ec5feed2f0a8d7fa508774211 100644
--- a/Source/core/fetch/FetchRequest.h
+++ b/Source/core/fetch/FetchRequest.h
@@ -61,26 +61,33 @@ public:
ResourceRequest& mutableResourceRequest() { return m_resourceRequest; }
const ResourceRequest& resourceRequest() const { return m_resourceRequest; }
const KURL& url() const { return m_resourceRequest.url(); }
+
const String& charset() const { return m_charset; }
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; }
- bool forPreload() const { return m_forPreload; }
- 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; }
+
+ ResourceWidth resourceWidth() const { return m_resourceWidth; }
+ void setResourceWidth(ResourceWidth);
+
+ ClientHintsPreferences& clientHintsPreferences() { return m_clientHintPreferences; }
+
+ bool forPreload() const { return m_forPreload; }
+ void setForPreload(bool forPreload) { m_forPreload = forPreload; }
+
void setContentSecurityCheck(ContentSecurityPolicyDisposition contentSecurityPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials, CredentialRequest);
void setCrossOriginAccessControl(SecurityOrigin*, StoredCredentials);
void setCrossOriginAccessControl(SecurityOrigin*, const AtomicString& crossOriginMode);
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;
« no previous file with comments | « Source/core/fetch/ClientHintsPreferencesTest.cpp ('k') | Source/core/html/parser/HTMLPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698