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

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: Created 4 years, 3 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 DECLARE_VIRTUAL_TRACE(); 69 DECLARE_VIRTUAL_TRACE();
70 70
71 private: 71 private:
72 Request(ScriptState*, FetchRequestData*, Headers*); 72 Request(ScriptState*, FetchRequestData*, Headers*);
73 Request(ScriptState*, FetchRequestData*); 73 Request(ScriptState*, FetchRequestData*);
74 Request(ScriptState*, const WebServiceWorkerRequest&); 74 Request(ScriptState*, const WebServiceWorkerRequest&);
75 75
76 const FetchRequestData* request() const { return m_request; } 76 const FetchRequestData* request() const { return m_request; }
77 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&); 77 static Request* createRequestWithRequestOrString(ScriptState*, Request*, con st String&, RequestInit&, ExceptionState&);
78 78
79 String contentType() const override;
79 String mimeType() const override; 80 String mimeType() const override;
80 void refreshBody(ScriptState*); 81 void refreshBody(ScriptState*);
81 82
82 const Member<FetchRequestData> m_request; 83 const Member<FetchRequestData> m_request;
83 const Member<Headers> m_headers; 84 const Member<Headers> m_headers;
84 }; 85 };
85 86
86 } // namespace blink 87 } // namespace blink
87 88
88 #endif // Request_h 89 #endif // Request_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698