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

Unified Diff: Source/modules/serviceworkers/Headers.h

Issue 384633002: Oilpan: add transition types to remaining Fetch and ServiceWorker objects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Another 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/FetchResponseData.cpp ('k') | Source/modules/serviceworkers/Headers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Headers.h
diff --git a/Source/modules/serviceworkers/Headers.h b/Source/modules/serviceworkers/Headers.h
index e576314a3009f6ec312d875483aec06dab939766..f17d3dc03f5b37810d3788c64b58ac1b52620c68 100644
--- a/Source/modules/serviceworkers/Headers.h
+++ b/Source/modules/serviceworkers/Headers.h
@@ -19,21 +19,20 @@ class HeadersForEachCallback;
class ScriptValue;
// http://fetch.spec.whatwg.org/#headers-class
-class Headers FINAL : public RefCounted<Headers>, public ScriptWrappable {
+class Headers FINAL : public RefCountedWillBeGarbageCollected<Headers>, public ScriptWrappable {
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Headers);
public:
enum Guard { ImmutableGuard, RequestGuard, RequestNoCORSGuard, ResponseGuard, NoneGuard };
- static PassRefPtr<Headers> create();
- static PassRefPtr<Headers> create(ExceptionState&);
- static PassRefPtr<Headers> create(const Headers*, ExceptionState&);
- static PassRefPtr<Headers> create(const Dictionary&, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Headers> create();
+ static PassRefPtrWillBeRawPtr<Headers> create(ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Headers> create(const Headers*, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Headers> create(const Dictionary&, ExceptionState&);
// Shares the FetchHeaderList. Called when creating a Request or Response.
- static PassRefPtr<Headers> create(FetchHeaderList*);
+ static PassRefPtrWillBeRawPtr<Headers> create(FetchHeaderList*);
- PassRefPtr<Headers> createCopy() const;
-
- ~Headers();
+ PassRefPtrWillBeRawPtr<Headers> createCopy() const;
// Headers.idl implementation.
void append(const String& name, const String& value, ExceptionState&);
@@ -53,13 +52,15 @@ public:
void fillWith(const Headers*, ExceptionState&);
void fillWith(const Dictionary&, ExceptionState&);
+ void trace(Visitor*);
+
private:
Headers();
// Shares the FetchHeaderList. Called when creating a Request or Response.
explicit Headers(FetchHeaderList*);
void forEachInternal(PassOwnPtr<HeadersForEachCallback>, ScriptValue*);
- RefPtr<FetchHeaderList> m_headerList;
+ RefPtrWillBeMember<FetchHeaderList> m_headerList;
Guard m_guard;
};
« no previous file with comments | « Source/modules/serviceworkers/FetchResponseData.cpp ('k') | Source/modules/serviceworkers/Headers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698