Index: Source/modules/serviceworkers/FetchHeaderList.h |
diff --git a/Source/modules/serviceworkers/FetchHeaderList.h b/Source/modules/serviceworkers/FetchHeaderList.h |
index 622fdab458ec42bf14f4f603d9b7378bfb2146ae..26fcd77d6f86ba70f3251fa86cb3c1834e5833cc 100644 |
--- a/Source/modules/serviceworkers/FetchHeaderList.h |
+++ b/Source/modules/serviceworkers/FetchHeaderList.h |
@@ -5,6 +5,7 @@ |
#ifndef FetchHeaderList_h |
#define FetchHeaderList_h |
+#include "platform/heap/Handle.h" |
#include "wtf/OwnPtr.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
@@ -14,12 +15,14 @@ |
namespace WebCore { |
+class Header; |
+ |
// http://fetch.spec.whatwg.org/#terminology-headers |
-class FetchHeaderList FINAL : public RefCounted<FetchHeaderList> { |
+class FetchHeaderList FINAL : public RefCountedWillBeGarbageCollectedFinalized<FetchHeaderList> { |
public: |
typedef std::pair<String, String> Header; |
- static PassRefPtr<FetchHeaderList> create(); |
- PassRefPtr<FetchHeaderList> createCopy(); |
+ static PassRefPtrWillBeRawPtr<FetchHeaderList> create(); |
+ PassRefPtrWillBeRawPtr<FetchHeaderList> createCopy(); |
~FetchHeaderList(); |
void append(const String&, const String&); |
@@ -42,6 +45,8 @@ public: |
static bool isForbiddenHeaderName(const String&); |
static bool isForbiddenResponseHeaderName(const String&); |
+ void trace(Visitor*) { } |
+ |
private: |
FetchHeaderList(); |
Vector<OwnPtr<Header> > m_headerList; |