Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: Source/modules/serviceworkers/FetchHeaderList.h

Issue 379113002: Move fetch-related predicates to core/fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 25 matching lines...) Expand all
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; 40 bool containsNonSimpleHeader() const;
41 41
42 const Vector<OwnPtr<Header> >& list() const { return m_headerList; } 42 const Vector<OwnPtr<Header> >& list() const { return m_headerList; }
43 43
44 static bool isValidHeaderName(const String&); 44 static bool isValidHeaderName(const String&);
45 static bool isValidHeaderValue(const String&); 45 static bool isValidHeaderValue(const String&);
46 static bool isSimpleHeader(const String&, const String&);
47 static bool isForbiddenHeaderName(const String&);
48 static bool isForbiddenResponseHeaderName(const String&);
49 46
50 void trace(Visitor*) { } 47 void trace(Visitor*) { }
51 48
52 private: 49 private:
53 FetchHeaderList(); 50 FetchHeaderList();
54 Vector<OwnPtr<Header> > m_headerList; 51 Vector<OwnPtr<Header> > m_headerList;
55 }; 52 };
56 53
57 } // namespace blink 54 } // namespace blink
58 55
59 #endif // FetchHeaderList_h 56 #endif // FetchHeaderList_h
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequest.cpp ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698