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

Side by Side Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRequest.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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebServiceWorkerRequest_h 5 #ifndef WebServiceWorkerRequest_h
6 #define WebServiceWorkerRequest_h 6 #define WebServiceWorkerRequest_h
7 7
8 #include "public/platform/WebCommon.h" 8 #include "public/platform/WebCommon.h"
9 #include "public/platform/WebPrivatePtr.h" 9 #include "public/platform/WebPrivatePtr.h"
10 #include "public/platform/WebReferrerPolicy.h" 10 #include "public/platform/WebReferrerPolicy.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void SetMode(WebURLRequest::FetchRequestMode); 65 void SetMode(WebURLRequest::FetchRequestMode);
66 WebURLRequest::FetchRequestMode Mode() const; 66 WebURLRequest::FetchRequestMode Mode() const;
67 67
68 void SetIsMainResourceLoad(bool); 68 void SetIsMainResourceLoad(bool);
69 bool IsMainResourceLoad() const; 69 bool IsMainResourceLoad() const;
70 70
71 void SetCredentialsMode(WebURLRequest::FetchCredentialsMode); 71 void SetCredentialsMode(WebURLRequest::FetchCredentialsMode);
72 WebURLRequest::FetchCredentialsMode CredentialsMode() const; 72 WebURLRequest::FetchCredentialsMode CredentialsMode() const;
73 73
74 void SetCacheMode(WebURLRequest::FetchRequestCacheMode);
75 WebURLRequest::FetchRequestCacheMode CacheMode() const;
76
74 void SetRedirectMode(WebURLRequest::FetchRedirectMode); 77 void SetRedirectMode(WebURLRequest::FetchRedirectMode);
75 WebURLRequest::FetchRedirectMode RedirectMode() const; 78 WebURLRequest::FetchRedirectMode RedirectMode() const;
76 79
77 void SetRequestContext(WebURLRequest::RequestContext); 80 void SetRequestContext(WebURLRequest::RequestContext);
78 WebURLRequest::RequestContext GetRequestContext() const; 81 WebURLRequest::RequestContext GetRequestContext() const;
79 82
80 void SetFrameType(WebURLRequest::FrameType); 83 void SetFrameType(WebURLRequest::FrameType);
81 WebURLRequest::FrameType GetFrameType() const; 84 WebURLRequest::FrameType GetFrameType() const;
82 85
83 void SetClientId(const WebString&); 86 void SetClientId(const WebString&);
84 const WebString& ClientId() const; 87 const WebString& ClientId() const;
85 88
86 void SetIsReload(bool); 89 void SetIsReload(bool);
87 bool IsReload() const; 90 bool IsReload() const;
88 91
89 #if INSIDE_BLINK 92 #if INSIDE_BLINK
90 const HTTPHeaderMap& Headers() const; 93 const HTTPHeaderMap& Headers() const;
91 PassRefPtr<BlobDataHandle> GetBlobDataHandle() const; 94 PassRefPtr<BlobDataHandle> GetBlobDataHandle() const;
92 const Referrer& GetReferrer() const; 95 const Referrer& GetReferrer() const;
93 #endif 96 #endif
94 97
95 private: 98 private:
96 WebPrivatePtr<WebServiceWorkerRequestPrivate> private_; 99 WebPrivatePtr<WebServiceWorkerRequestPrivate> private_;
97 }; 100 };
98 101
99 } // namespace blink 102 } // namespace blink
100 103
101 #endif // WebServiceWorkerRequest_h 104 #endif // WebServiceWorkerRequest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebURLRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698