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/ScriptState.h" | 8 #include "bindings/core/v8/ScriptState.h" |
9 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
10 #include "modules/serviceworkers/FetchHeaderList.h" | 10 #include "modules/serviceworkers/FetchHeaderList.h" |
11 #include "wtf/Forward.h" | 11 #include "wtf/Forward.h" |
12 #include "wtf/PassOwnPtr.h" | 12 #include "wtf/PassOwnPtr.h" |
13 | 13 |
14 namespace blink { | 14 namespace blink { |
15 | 15 |
16 class Dictionary; | 16 class Dictionary; |
17 class ExceptionState; | 17 class ExceptionState; |
18 class Iterator; | 18 class Iterator; |
19 class ScriptValue; | |
20 | 19 |
21 // http://fetch.spec.whatwg.org/#headers-class | 20 // http://fetch.spec.whatwg.org/#headers-class |
22 class Headers final : public GarbageCollected<Headers>, public ScriptWrappable { | 21 class Headers final : public GarbageCollected<Headers>, public ScriptWrappable { |
23 DEFINE_WRAPPERTYPEINFO(); | 22 DEFINE_WRAPPERTYPEINFO(); |
24 public: | 23 public: |
25 enum Guard { ImmutableGuard, RequestGuard, RequestNoCORSGuard, ResponseGuard
, NoneGuard }; | 24 enum Guard { ImmutableGuard, RequestGuard, RequestNoCORSGuard, ResponseGuard
, NoneGuard }; |
26 | 25 |
27 static Headers* create(); | 26 static Headers* create(); |
28 static Headers* create(ExceptionState&); | 27 static Headers* create(ExceptionState&); |
29 static Headers* create(const Headers*, ExceptionState&); | 28 static Headers* create(const Headers*, ExceptionState&); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // Shares the FetchHeaderList. Called when creating a Request or Response. | 61 // Shares the FetchHeaderList. Called when creating a Request or Response. |
63 explicit Headers(FetchHeaderList*); | 62 explicit Headers(FetchHeaderList*); |
64 | 63 |
65 Member<FetchHeaderList> m_headerList; | 64 Member<FetchHeaderList> m_headerList; |
66 Guard m_guard; | 65 Guard m_guard; |
67 }; | 66 }; |
68 | 67 |
69 } // namespace blink | 68 } // namespace blink |
70 | 69 |
71 #endif // Headers_h | 70 #endif // Headers_h |
OLD | NEW |