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

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

Issue 478693005: Oilpan: Ship Oilpan for serviceworkers/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
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"
11 #include "wtf/RefCounted.h"
12 #include "wtf/Vector.h" 11 #include "wtf/Vector.h"
13 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
14 #include <utility> 13 #include <utility>
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class Header; 17 class Header;
19 18
20 // http://fetch.spec.whatwg.org/#terminology-headers 19 // http://fetch.spec.whatwg.org/#terminology-headers
21 class FetchHeaderList FINAL : public RefCountedWillBeGarbageCollectedFinalized<F etchHeaderList> { 20 class FetchHeaderList FINAL : public GarbageCollectedFinalized<FetchHeaderList> {
22 public: 21 public:
23 typedef std::pair<String, String> Header; 22 typedef std::pair<String, String> Header;
24 static PassRefPtrWillBeRawPtr<FetchHeaderList> create(); 23 static FetchHeaderList* create();
25 PassRefPtrWillBeRawPtr<FetchHeaderList> createCopy(); 24 FetchHeaderList* createCopy();
26 25
27 ~FetchHeaderList(); 26 ~FetchHeaderList();
28 void append(const String&, const String&); 27 void append(const String&, const String&);
29 void set(const String&, const String&); 28 void set(const String&, const String&);
30 // FIXME: Implement parse() 29 // FIXME: Implement parse()
31 // FIXME: Implement extractMIMEType() 30 // FIXME: Implement extractMIMEType()
32 31
33 size_t size() const; 32 size_t size() const;
34 void remove(const String&); 33 void remove(const String&);
35 bool get(const String&, String&) const; 34 bool get(const String&, String&) const;
(...skipping 11 matching lines...) Expand all
47 void trace(Visitor*) { } 46 void trace(Visitor*) { }
48 47
49 private: 48 private:
50 FetchHeaderList(); 49 FetchHeaderList();
51 Vector<OwnPtr<Header> > m_headerList; 50 Vector<OwnPtr<Header> > m_headerList;
52 }; 51 };
53 52
54 } // namespace blink 53 } // namespace blink
55 54
56 #endif // FetchHeaderList_h 55 #endif // FetchHeaderList_h
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.cpp ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698