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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchRequestData.h

Issue 2811623002: Fetch API: Add Request#cache attribute (Closed)
Patch Set: Created 3 years, 8 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/modules/fetch/FetchRequestData.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchRequestData.h b/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
index d96b33537a60442d7cb4f889f1b9367b08f23032..a46c35723a912579f86f14f4f179232d0e992468 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
@@ -66,6 +66,8 @@ class FetchRequestData final
WebURLRequest::FetchCredentialsMode Credentials() const {
return credentials_;
}
falken 2017/04/11 05:53:59 SetCache() and Cache() are quite generic names, bu
yhirano 2017/04/11 06:26:51 [Set]CacheMode sounds better to me, too.
yiyix 2017/04/11 10:00:06 Done.
+ void SetCache(WebURLRequest::FetchRequestCache cache) { cache_ = cache; }
+ WebURLRequest::FetchRequestCache Cache() const { return cache_; }
void SetRedirect(WebURLRequest::FetchRedirectMode redirect) {
redirect_ = redirect;
}
@@ -120,6 +122,7 @@ class FetchRequestData final
// FIXME: Support m_synchronousFlag;
WebURLRequest::FetchRequestMode mode_;
WebURLRequest::FetchCredentialsMode credentials_;
+ WebURLRequest::FetchRequestCache cache_;
WebURLRequest::FetchRedirectMode redirect_;
// FIXME: Support m_useURLCredentialsFlag;
// FIXME: Support m_redirectCount;

Powered by Google App Engine
This is Rietveld 408576698