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

Unified Diff: trunk/Source/modules/serviceworkers/ServiceWorker.h

Issue 158583002: Revert 166694 "Move serviceworker/ module to oilpan" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 10 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
Index: trunk/Source/modules/serviceworkers/ServiceWorker.h
===================================================================
--- trunk/Source/modules/serviceworkers/ServiceWorker.h (revision 166772)
+++ trunk/Source/modules/serviceworkers/ServiceWorker.h (working copy)
@@ -31,7 +31,6 @@
#ifndef ServiceWorker_h
#define ServiceWorker_h
-#include "heap/Handle.h"
#include "public/platform/WebServiceWorker.h"
#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
@@ -44,25 +43,22 @@
namespace WebCore {
-class ServiceWorker : public RefCountedWillBeGarbageCollectedFinalized<ServiceWorker> {
- DECLARE_GC_INFO;
+class ServiceWorker : public RefCounted<ServiceWorker> {
public:
- static PassRefPtrWillBeRawPtr<ServiceWorker> create(PassOwnPtr<blink::WebServiceWorker> worker)
+ static PassRefPtr<ServiceWorker> create(PassOwnPtr<blink::WebServiceWorker> worker)
{
- return adoptRefWillBeNoop(new ServiceWorker(worker));
+ return adoptRef(new ServiceWorker(worker));
}
// For CallbackPromiseAdapter
typedef blink::WebServiceWorker WebType;
- static PassRefPtrWillBeRawPtr<ServiceWorker> from(WebType* worker)
+ static PassRefPtr<ServiceWorker> from(WebType* worker)
{
return create(adoptPtr(worker));
}
~ServiceWorker() { }
- void trace(Visitor*) { }
-
private:
explicit ServiceWorker(PassOwnPtr<blink::WebServiceWorker>);
« no previous file with comments | « trunk/Source/modules/serviceworkers/InstallPhaseEvent.cpp ('k') | trunk/Source/modules/serviceworkers/ServiceWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698