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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceResponse.h

Issue 1980673002: Make ResourceResponse's cached CacheControlHeader mutable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/ResourceResponse.h
diff --git a/third_party/WebKit/Source/platform/network/ResourceResponse.h b/third_party/WebKit/Source/platform/network/ResourceResponse.h
index e0276241609c1ef2675375f9dfbaf17fb9016573..cd3cf5f766d6cfcb90dff38ff1c00e473eba185c 100644
--- a/third_party/WebKit/Source/platform/network/ResourceResponse.h
+++ b/third_party/WebKit/Source/platform/network/ResourceResponse.h
@@ -138,12 +138,12 @@ public:
// These functions return parsed values of the corresponding response headers.
// NaN means that the header was not present or had invalid value.
- bool cacheControlContainsNoCache();
- bool cacheControlContainsNoStore();
- bool cacheControlContainsMustRevalidate();
+ bool cacheControlContainsNoCache() const;
+ bool cacheControlContainsNoStore() const;
+ bool cacheControlContainsMustRevalidate() const;
bool hasCacheValidatorFields() const;
- double cacheControlMaxAge();
- double cacheControlStaleWhileRevalidate();
+ double cacheControlMaxAge() const;
+ double cacheControlStaleWhileRevalidate() const;
double date() const;
double age() const;
double expires() const;
@@ -271,7 +271,7 @@ private:
bool m_isNull : 1;
- CacheControlHeader m_cacheControlHeader;
+ mutable CacheControlHeader m_cacheControlHeader;
mutable bool m_haveParsedAgeHeader : 1;
mutable bool m_haveParsedDateHeader : 1;
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/network/ResourceResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698