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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.h

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: More global-interface-listing*-expected.txt, urlencoded-parser-expected.txt Created 3 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 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/modules/v8/RequestOrUSVString.h" 9 #include "bindings/modules/v8/RequestOrUSVString.h"
10 #include "modules/ModulesExport.h" 10 #include "modules/ModulesExport.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 Request(ScriptState*, FetchRequestData*, Headers*); 87 Request(ScriptState*, FetchRequestData*, Headers*);
88 Request(ScriptState*, FetchRequestData*); 88 Request(ScriptState*, FetchRequestData*);
89 89
90 const FetchRequestData* GetRequest() const { return request_; } 90 const FetchRequestData* GetRequest() const { return request_; }
91 static Request* CreateRequestWithRequestOrString(ScriptState*, 91 static Request* CreateRequestWithRequestOrString(ScriptState*,
92 Request*, 92 Request*,
93 const String&, 93 const String&,
94 RequestInit&, 94 RequestInit&,
95 ExceptionState&); 95 ExceptionState&);
96 96
97 String ContentType() const override;
97 String MimeType() const override; 98 String MimeType() const override;
98 void RefreshBody(ScriptState*); 99 void RefreshBody(ScriptState*);
99 100
100 const Member<FetchRequestData> request_; 101 const Member<FetchRequestData> request_;
101 const Member<Headers> headers_; 102 const Member<Headers> headers_;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // Request_h 107 #endif // Request_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/MultipartParserTest.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