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

Unified Diff: Source/core/workers/WorkerLocation.h

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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: Source/core/workers/WorkerLocation.h
diff --git a/Source/core/workers/WorkerLocation.h b/Source/core/workers/WorkerLocation.h
index 6b5aefb7cf7323d7f356edae7040251cd4f23f0b..8e557f4151ed4d89fcbd650708bea7ac819f57f3 100644
--- a/Source/core/workers/WorkerLocation.h
+++ b/Source/core/workers/WorkerLocation.h
@@ -29,6 +29,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/DOMURLUtilsReadOnly.h"
+#include "heap/Handle.h"
#include "platform/weborigin/KURL.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -37,11 +38,12 @@
namespace WebCore {
-class WorkerLocation FINAL : public RefCounted<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
+class WorkerLocation FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<WorkerLocation> create(const KURL& url)
+ static PassRefPtrWillBeRawPtr<WorkerLocation> create(const KURL& url)
{
- return adoptRef(new WorkerLocation(url));
+ return adoptRefWillBeNoop(new WorkerLocation(url));
}
virtual KURL url() const OVERRIDE { return m_url; }
@@ -51,6 +53,8 @@ public:
return String();
}
+ void trace(Visitor*) { }
+
private:
explicit WorkerLocation(const KURL& url) : m_url(url)
{

Powered by Google App Engine
This is Rietveld 408576698