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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.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
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 Request_h 5 #ifndef Request_h
6 #define Request_h 6 #define Request_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/RequestOrUSVString.h" 10 #include "bindings/modules/v8/RequestOrUSVString.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // From Request.idl: 56 // From Request.idl:
57 String method() const; 57 String method() const;
58 KURL url() const; 58 KURL url() const;
59 Headers* getHeaders() const { return headers_; } 59 Headers* getHeaders() const { return headers_; }
60 String Context() const; 60 String Context() const;
61 String referrer() const; 61 String referrer() const;
62 String getReferrerPolicy() const; 62 String getReferrerPolicy() const;
63 String mode() const; 63 String mode() const;
64 String credentials() const; 64 String credentials() const;
65 String cache() const;
65 String redirect() const; 66 String redirect() const;
66 String integrity() const; 67 String integrity() const;
67 68
68 // From Request.idl: 69 // From Request.idl:
69 // This function must be called with entering an appropriate V8 context. 70 // This function must be called with entering an appropriate V8 context.
70 Request* clone(ScriptState*, ExceptionState&); 71 Request* clone(ScriptState*, ExceptionState&);
71 72
72 FetchRequestData* PassRequestData(ScriptState*); 73 FetchRequestData* PassRequestData(ScriptState*);
73 void PopulateWebServiceWorkerRequest(WebServiceWorkerRequest&) const; 74 void PopulateWebServiceWorkerRequest(WebServiceWorkerRequest&) const;
74 bool HasBody() const; 75 bool HasBody() const;
(...skipping 21 matching lines...) Expand all
96 String MimeType() const override; 97 String MimeType() const override;
97 void RefreshBody(ScriptState*); 98 void RefreshBody(ScriptState*);
98 99
99 const Member<FetchRequestData> request_; 100 const Member<FetchRequestData> request_;
100 const Member<Headers> headers_; 101 const Member<Headers> headers_;
101 }; 102 };
102 103
103 } // namespace blink 104 } // namespace blink
104 105
105 #endif // Request_h 106 #endif // Request_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/FetchRequestData.cpp ('k') | third_party/WebKit/Source/modules/fetch/Request.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698