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

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

Issue 333423004: moved to https://codereview.chromium.org/399543002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 5 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/modules/modules.gypi ('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 "wtf/OwnPtr.h" 8 #include "wtf/OwnPtr.h"
9 #include "wtf/PassRefPtr.h" 9 #include "wtf/PassRefPtr.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.h"
(...skipping 16 matching lines...) Expand all
27 // FIXME: Implement parse() 27 // FIXME: Implement parse()
28 // FIXME: Implement extractMIMEType() 28 // FIXME: Implement extractMIMEType()
29 29
30 size_t size() const; 30 size_t size() const;
31 void remove(const String&); 31 void remove(const String&);
32 bool get(const String&, String&) const; 32 bool get(const String&, String&) const;
33 void getAll(const String&, Vector<String>&) const; 33 void getAll(const String&, Vector<String>&) const;
34 bool has(const String&) const; 34 bool has(const String&) const;
35 void clearList(); 35 void clearList();
36 36
37 bool containsNonSimpleHeader() const;
38
37 const Vector<OwnPtr<Header> >& list() const { return m_headerList; } 39 const Vector<OwnPtr<Header> >& list() const { return m_headerList; }
38 40
39 static bool isValidHeaderName(const String&); 41 static bool isValidHeaderName(const String&);
40 static bool isValidHeaderValue(const String&); 42 static bool isValidHeaderValue(const String&);
41 static bool isSimpleHeader(const String&, const String&); 43 static bool isSimpleHeader(const String&, const String&);
42 static bool isForbiddenHeaderName(const String&); 44 static bool isForbiddenHeaderName(const String&);
43 static bool isForbiddenResponseHeaderName(const String&); 45 static bool isForbiddenResponseHeaderName(const String&);
44 46
45 private: 47 private:
46 FetchHeaderList(); 48 FetchHeaderList();
47 Vector<OwnPtr<Header> > m_headerList; 49 Vector<OwnPtr<Header> > m_headerList;
48 }; 50 };
49 51
50 } // namespace WebCore 52 } // namespace WebCore
51 53
52 #endif // FetchHeaderList_h 54 #endif // FetchHeaderList_h
OLDNEW
« no previous file with comments | « Source/modules/modules.gypi ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698