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

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

Issue 2811623002: Fetch API: Add Request#cache attribute (Closed)
Patch Set: address comments 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..983518e25450f72f7f470e463c370e09620d4433 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchRequestData.h
@@ -66,6 +66,10 @@ class FetchRequestData final
WebURLRequest::FetchCredentialsMode Credentials() const {
return credentials_;
}
+ void SetCacheMode(WebURLRequest::FetchRequestCacheMode cache) {
yhirano 2017/04/11 14:08:36 cache_mode?
yiyix 2017/04/12 04:02:36 Done.
+ cache_ = cache;
+ }
+ WebURLRequest::FetchRequestCacheMode CacheMode() const { return cache_; }
void SetRedirect(WebURLRequest::FetchRedirectMode redirect) {
redirect_ = redirect;
}
@@ -120,6 +124,7 @@ class FetchRequestData final
// FIXME: Support m_synchronousFlag;
WebURLRequest::FetchRequestMode mode_;
WebURLRequest::FetchCredentialsMode credentials_;
+ WebURLRequest::FetchRequestCacheMode cache_;
yhirano 2017/04/11 14:08:36 cache_mode_?
falken 2017/04/12 01:48:23 +1
yiyix 2017/04/12 04:02:36 Done.
WebURLRequest::FetchRedirectMode redirect_;
// FIXME: Support m_useURLCredentialsFlag;
// FIXME: Support m_redirectCount;

Powered by Google App Engine
This is Rietveld 408576698