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 FetchHeaderList_h | 5 #ifndef FetchHeaderList_h |
6 #define FetchHeaderList_h | 6 #define FetchHeaderList_h |
7 | 7 |
8 #include "platform/heap/Handle.h" | 8 #include "platform/heap/Handle.h" |
9 #include "wtf/OwnPtr.h" | 9 #include "wtf/OwnPtr.h" |
10 #include "wtf/PassRefPtr.h" | 10 #include "wtf/PassRefPtr.h" |
11 #include "wtf/Vector.h" | 11 #include "wtf/Vector.h" |
12 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
13 #include <utility> | 13 #include <utility> |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class Header; | 17 class Header; |
18 | 18 |
19 // http://fetch.spec.whatwg.org/#terminology-headers | 19 // http://fetch.spec.whatwg.org/#terminology-headers |
20 class FetchHeaderList FINAL : public GarbageCollectedFinalized<FetchHeaderList>
{ | 20 class FetchHeaderList final : public GarbageCollectedFinalized<FetchHeaderList>
{ |
21 public: | 21 public: |
22 typedef std::pair<String, String> Header; | 22 typedef std::pair<String, String> Header; |
23 static FetchHeaderList* create(); | 23 static FetchHeaderList* create(); |
24 FetchHeaderList* createCopy(); | 24 FetchHeaderList* createCopy(); |
25 | 25 |
26 ~FetchHeaderList(); | 26 ~FetchHeaderList(); |
27 void append(const String&, const String&); | 27 void append(const String&, const String&); |
28 void set(const String&, const String&); | 28 void set(const String&, const String&); |
29 // FIXME: Implement parse() | 29 // FIXME: Implement parse() |
30 // FIXME: Implement extractMIMEType() | 30 // FIXME: Implement extractMIMEType() |
(...skipping 16 matching lines...) Expand all Loading... |
47 void trace(Visitor*) { } | 47 void trace(Visitor*) { } |
48 | 48 |
49 private: | 49 private: |
50 FetchHeaderList(); | 50 FetchHeaderList(); |
51 Vector<OwnPtr<Header> > m_headerList; | 51 Vector<OwnPtr<Header> > m_headerList; |
52 }; | 52 }; |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif // FetchHeaderList_h | 56 #endif // FetchHeaderList_h |
OLD | NEW |