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" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // FIXME: Implement parse() | 30 // FIXME: Implement parse() |
31 // FIXME: Implement extractMIMEType() | 31 // FIXME: Implement extractMIMEType() |
32 | 32 |
33 size_t size() const; | 33 size_t size() const; |
34 void remove(const String&); | 34 void remove(const String&); |
35 bool get(const String&, String&) const; | 35 bool get(const String&, String&) const; |
36 void getAll(const String&, Vector<String>&) const; | 36 void getAll(const String&, Vector<String>&) const; |
37 bool has(const String&) const; | 37 bool has(const String&) const; |
38 void clearList(); | 38 void clearList(); |
39 | 39 |
| 40 bool containsNonSimpleHeader() const; |
| 41 |
40 const Vector<OwnPtr<Header> >& list() const { return m_headerList; } | 42 const Vector<OwnPtr<Header> >& list() const { return m_headerList; } |
41 | 43 |
42 static bool isValidHeaderName(const String&); | 44 static bool isValidHeaderName(const String&); |
43 static bool isValidHeaderValue(const String&); | 45 static bool isValidHeaderValue(const String&); |
44 static bool isSimpleHeader(const String&, const String&); | 46 static bool isSimpleHeader(const String&, const String&); |
45 static bool isForbiddenHeaderName(const String&); | 47 static bool isForbiddenHeaderName(const String&); |
46 static bool isForbiddenResponseHeaderName(const String&); | 48 static bool isForbiddenResponseHeaderName(const String&); |
47 | 49 |
48 void trace(Visitor*) { } | 50 void trace(Visitor*) { } |
49 | 51 |
50 private: | 52 private: |
51 FetchHeaderList(); | 53 FetchHeaderList(); |
52 Vector<OwnPtr<Header> > m_headerList; | 54 Vector<OwnPtr<Header> > m_headerList; |
53 }; | 55 }; |
54 | 56 |
55 } // namespace blink | 57 } // namespace blink |
56 | 58 |
57 #endif // FetchHeaderList_h | 59 #endif // FetchHeaderList_h |
OLD | NEW |