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

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

Issue 1844053003: CREDENTIAL: Rework the integration with Fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear attachedcredentials Created 4 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 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/weborigin/Referrer.h" 11 #include "platform/weborigin/Referrer.h"
11 #include "wtf/OwnPtr.h" 12 #include "wtf/OwnPtr.h"
12 #include "wtf/RefPtr.h" 13 #include "wtf/RefPtr.h"
13 #include "wtf/text/WTFString.h" 14 #include "wtf/text/WTFString.h"
14 15
15 namespace blink { 16 namespace blink {
16 17
17 class ExceptionState; 18 class ExceptionState;
18 class FetchDataConsumerHandle; 19 class FetchDataConsumerHandle;
19 class Headers; 20 class Headers;
20 21
21 // FIXME: Use IDL dictionary instead of this class. 22 // FIXME: Use IDL dictionary instead of this class.
22 class RequestInit { 23 class RequestInit {
23 STACK_ALLOCATED(); 24 STACK_ALLOCATED();
24 public: 25 public:
25 explicit RequestInit(ExecutionContext*, const Dictionary&, ExceptionState&); 26 explicit RequestInit(ExecutionContext*, const Dictionary&, ExceptionState&);
26 27
27 String method; 28 String method;
28 Member<Headers> headers; 29 Member<Headers> headers;
29 Dictionary headersDictionary; 30 Dictionary headersDictionary;
30 String contentType; 31 String contentType;
31 OwnPtr<FetchDataConsumerHandle> body; 32 OwnPtr<FetchDataConsumerHandle> body;
32 Referrer referrer; 33 Referrer referrer;
33 String mode; 34 String mode;
34 String credentials; 35 String credentials;
35 String redirect; 36 String redirect;
36 String integrity; 37 String integrity;
38 RefPtr<EncodedFormData> attachedCredential;
37 // 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
38 // should be used in the Request constructor. 40 // should be used in the Request constructor.
39 bool areAnyMembersSet; 41 bool areAnyMembersSet;
40 // True if the RequestInit |body| was created from a 'PasswordCredential' ob ject.
41 bool isCredentialRequest;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // RequestInit_h 46 #endif // RequestInit_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.cpp ('k') | third_party/WebKit/Source/modules/fetch/RequestInit.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698