| 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 Headers_h | 5 #ifndef Headers_h |
| 6 #define Headers_h | 6 #define Headers_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/Iterable.h" | 8 #include "bindings/core/v8/Iterable.h" |
| 9 #include "bindings/core/v8/ScriptState.h" | 9 #include "bindings/core/v8/ScriptState.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| 11 #include "modules/ModulesExport.h" | 11 #include "modules/ModulesExport.h" |
| 12 #include "modules/fetch/FetchHeaderList.h" | 12 #include "modules/fetch/FetchHeaderList.h" |
| 13 #include "platform/wtf/Forward.h" | 13 #include "platform/wtf/Forward.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders; | 17 class ByteStringSequenceSequenceOrByteStringByteStringRecord; |
| 18 class ExceptionState; | 18 class ExceptionState; |
| 19 | 19 |
| 20 using HeadersInit = | 20 using HeadersInit = ByteStringSequenceSequenceOrByteStringByteStringRecord; |
| 21 ByteStringSequenceSequenceOrByteStringByteStringRecordOrHeaders; | |
| 22 | 21 |
| 23 // http://fetch.spec.whatwg.org/#headers-class | 22 // http://fetch.spec.whatwg.org/#headers-class |
| 24 class MODULES_EXPORT Headers final : public GarbageCollected<Headers>, | 23 class MODULES_EXPORT Headers final : public GarbageCollected<Headers>, |
| 25 public ScriptWrappable, | 24 public ScriptWrappable, |
| 26 public PairIterable<String, String> { | 25 public PairIterable<String, String> { |
| 27 DEFINE_WRAPPERTYPEINFO(); | 26 DEFINE_WRAPPERTYPEINFO(); |
| 28 | 27 |
| 29 public: | 28 public: |
| 30 enum Guard { | 29 enum Guard { |
| 31 kImmutableGuard, | 30 kImmutableGuard, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 70 |
| 72 Member<FetchHeaderList> header_list_; | 71 Member<FetchHeaderList> header_list_; |
| 73 Guard guard_; | 72 Guard guard_; |
| 74 | 73 |
| 75 IterationSource* StartIteration(ScriptState*, ExceptionState&) override; | 74 IterationSource* StartIteration(ScriptState*, ExceptionState&) override; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 } // namespace blink | 77 } // namespace blink |
| 79 | 78 |
| 80 #endif // Headers_h | 79 #endif // Headers_h |
| OLD | NEW |