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

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

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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/core/workers/WorkerGlobalScope.idl ('k') | Source/core/workers/WorkerLocation.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerLocation.h
diff --git a/Source/core/workers/WorkerLocation.h b/Source/core/workers/WorkerLocation.h
index 6b5aefb7cf7323d7f356edae7040251cd4f23f0b..b36cb88e82dd5c72aa7d6ae62934abd03c29d46c 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,11 @@
namespace WebCore {
-class WorkerLocation FINAL : public RefCounted<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
+class WorkerLocation FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerLocation>, public ScriptWrappable, public DOMURLUtilsReadOnly {
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 +52,8 @@ public:
return String();
}
+ void trace(Visitor*) { }
+
private:
explicit WorkerLocation(const KURL& url) : m_url(url)
{
« no previous file with comments | « Source/core/workers/WorkerGlobalScope.idl ('k') | Source/core/workers/WorkerLocation.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698