Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/weborigin/Referrer.h" | 10 #include "platform/weborigin/Referrer.h" |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 OwnPtr<FetchDataConsumerHandle> body; | 31 OwnPtr<FetchDataConsumerHandle> body; |
| 32 Referrer referrer; | 32 Referrer referrer; |
| 33 String mode; | 33 String mode; |
| 34 String credentials; | 34 String credentials; |
| 35 String redirect; | 35 String redirect; |
| 36 String integrity; | 36 String integrity; |
| 37 | 37 |
| 38 // https://w3c.github.io/webappsec/specs/credentialmanagement/#monkey-patchi ng-fetch-2 | 38 // https://w3c.github.io/webappsec/specs/credentialmanagement/#monkey-patchi ng-fetch-2 |
| 39 bool opaque; | 39 bool opaque; |
| 40 // True if any members in RequestInit are set and hence the referrer member | 40 // True if any members in RequestInit are set and hence the referrer member |
| 41 // so prefer using isAnyMembersSet instead isReferrerSet | |
|
yhirano
2015/10/16 18:15:53
??
shiva.jm
2015/10/19 09:03:49
Done.
| |
| 41 // should be used in the Request constructor. | 42 // should be used in the Request constructor. |
| 42 bool isReferrerSet; | 43 bool isAnyMembersSet; |
|
yhirano
2015/10/16 18:15:53
|areAnyMembersSet| would be better.
shiva.jm
2015/10/19 09:03:49
Done.
| |
| 43 }; | 44 }; |
| 44 | 45 |
| 45 } | 46 } |
| 46 | 47 |
| 47 #endif // RequestInit_h | 48 #endif // RequestInit_h |
| OLD | NEW |