| 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/RefCounted.h" | 11 #include "wtf/RefCounted.h" |
| 12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
| 13 #include "wtf/text/WTFString.h" | 13 #include "wtf/text/WTFString.h" |
| 14 #include <utility> | 14 #include <utility> |
| 15 | 15 |
| 16 namespace WebCore { | 16 namespace blink { |
| 17 | 17 |
| 18 class Header; | 18 class Header; |
| 19 | 19 |
| 20 // http://fetch.spec.whatwg.org/#terminology-headers | 20 // http://fetch.spec.whatwg.org/#terminology-headers |
| 21 class FetchHeaderList FINAL : public RefCountedWillBeGarbageCollectedFinalized<F
etchHeaderList> { | 21 class FetchHeaderList FINAL : public RefCountedWillBeGarbageCollectedFinalized<F
etchHeaderList> { |
| 22 public: | 22 public: |
| 23 typedef std::pair<String, String> Header; | 23 typedef std::pair<String, String> Header; |
| 24 static PassRefPtrWillBeRawPtr<FetchHeaderList> create(); | 24 static PassRefPtrWillBeRawPtr<FetchHeaderList> create(); |
| 25 PassRefPtrWillBeRawPtr<FetchHeaderList> createCopy(); | 25 PassRefPtrWillBeRawPtr<FetchHeaderList> createCopy(); |
| 26 | 26 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 45 static bool isForbiddenHeaderName(const String&); | 45 static bool isForbiddenHeaderName(const String&); |
| 46 static bool isForbiddenResponseHeaderName(const String&); | 46 static bool isForbiddenResponseHeaderName(const String&); |
| 47 | 47 |
| 48 void trace(Visitor*) { } | 48 void trace(Visitor*) { } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 FetchHeaderList(); | 51 FetchHeaderList(); |
| 52 Vector<OwnPtr<Header> > m_headerList; | 52 Vector<OwnPtr<Header> > m_headerList; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace WebCore | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // FetchHeaderList_h | 57 #endif // FetchHeaderList_h |
| OLD | NEW |