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

Unified Diff: Source/modules/serviceworkers/Headers.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 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 476899725d3a22a075ae74392807e1ebc95a7d40..7234dc82309d613f5c40b0915a31538f28b04341 100644
--- a/Source/modules/serviceworkers/Headers.h
+++ b/Source/modules/serviceworkers/Headers.h
@@ -9,7 +9,6 @@
#include "modules/serviceworkers/FetchHeaderList.h"
#include "wtf/Forward.h"
#include "wtf/PassOwnPtr.h"
-#include "wtf/RefCounted.h"
namespace blink {
@@ -19,21 +18,20 @@ class HeadersForEachCallback;
class ScriptValue;
// http://fetch.spec.whatwg.org/#headers-class
-class Headers FINAL : public RefCountedWillBeGarbageCollected<Headers>, public ScriptWrappable {
- DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(Headers);
+class Headers FINAL : public GarbageCollected<Headers>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
enum Guard { ImmutableGuard, RequestGuard, RequestNoCORSGuard, ResponseGuard, NoneGuard };
- static PassRefPtrWillBeRawPtr<Headers> create();
- static PassRefPtrWillBeRawPtr<Headers> create(ExceptionState&);
- static PassRefPtrWillBeRawPtr<Headers> create(const Headers*, ExceptionState&);
- static PassRefPtrWillBeRawPtr<Headers> create(const Dictionary&, ExceptionState&);
+ static Headers* create();
+ static Headers* create(ExceptionState&);
+ static Headers* create(const Headers*, ExceptionState&);
+ static Headers* create(const Dictionary&, ExceptionState&);
// Shares the FetchHeaderList. Called when creating a Request or Response.
- static PassRefPtrWillBeRawPtr<Headers> create(FetchHeaderList*);
+ static Headers* create(FetchHeaderList*);
- PassRefPtrWillBeRawPtr<Headers> createCopy() const;
+ Headers* createCopy() const;
// Headers.idl implementation.
void append(const String& name, const String& value, ExceptionState&);
@@ -61,7 +59,7 @@ private:
explicit Headers(FetchHeaderList*);
void forEachInternal(PassOwnPtrWillBeRawPtr<HeadersForEachCallback>, const ScriptValue*);
- RefPtrWillBeMember<FetchHeaderList> m_headerList;
+ Member<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