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

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

Issue 2691513002: Fetch: Make Headers' constructor match the current spec IDL. (Closed)
Patch Set: Patch v2 Created 3 years, 10 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 RequestInit_h 5 #ifndef RequestInit_h
6 #define RequestInit_h 6 #define RequestInit_h
7 7
8 #include "bindings/core/v8/Dictionary.h" 8 #include "bindings/core/v8/Dictionary.h"
9 #include "platform/heap/Handle.h" 9 #include "platform/heap/Handle.h"
10 #include "platform/network/EncodedFormData.h" 10 #include "platform/network/EncodedFormData.h"
(...skipping 10 matching lines...) Expand all
21 21
22 // FIXME: Use IDL dictionary instead of this class. 22 // FIXME: Use IDL dictionary instead of this class.
23 class RequestInit { 23 class RequestInit {
24 STACK_ALLOCATED(); 24 STACK_ALLOCATED();
25 25
26 public: 26 public:
27 explicit RequestInit(ExecutionContext*, const Dictionary&, ExceptionState&); 27 explicit RequestInit(ExecutionContext*, const Dictionary&, ExceptionState&);
28 28
29 String method; 29 String method;
30 Member<Headers> headers; 30 Member<Headers> headers;
31 Dictionary headersDictionary;
32 String contentType; 31 String contentType;
33 Member<BytesConsumer> body; 32 Member<BytesConsumer> body;
34 Referrer referrer; 33 Referrer referrer;
35 String mode; 34 String mode;
36 String credentials; 35 String credentials;
37 String redirect; 36 String redirect;
38 String integrity; 37 String integrity;
39 RefPtr<EncodedFormData> attachedCredential; 38 RefPtr<EncodedFormData> attachedCredential;
40 // True if any members in RequestInit are set and hence the referrer member 39 // True if any members in RequestInit are set and hence the referrer member
41 // should be used in the Request constructor. 40 // should be used in the Request constructor.
42 bool areAnyMembersSet; 41 bool areAnyMembersSet;
43 }; 42 };
44 43
45 } // namespace blink 44 } // namespace blink
46 45
47 #endif // RequestInit_h 46 #endif // RequestInit_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698