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

Unified Diff: Source/core/workers/WorkerNavigator.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/WorkerNavigator.h
diff --git a/Source/core/workers/WorkerNavigator.h b/Source/core/workers/WorkerNavigator.h
index 850d706ba9b9bb6c03f858f37f9998bfc265245a..37e6f39932f8a2d4b5fcf76b10a9426ffbad98a0 100644
--- a/Source/core/workers/WorkerNavigator.h
+++ b/Source/core/workers/WorkerNavigator.h
@@ -28,6 +28,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/frame/NavigatorBase.h"
+#include "heap/Handle.h"
#include "platform/Supplementable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
@@ -35,13 +36,19 @@
namespace WebCore {
-class WorkerNavigator FINAL : public RefCounted<WorkerNavigator>, public ScriptWrappable, public NavigatorBase, public Supplementable<WorkerNavigator> {
+class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorBase, public Supplementable<WorkerNavigator> {
+ DECLARE_GC_INFO;
public:
- static PassRefPtr<WorkerNavigator> create(const String& userAgent) { return adoptRef(new WorkerNavigator(userAgent)); }
+ static PassRefPtrWillBeRawPtr<WorkerNavigator> create(const String& userAgent)
+ {
+ return adoptRefWillBeNoop(new WorkerNavigator(userAgent));
+ }
virtual ~WorkerNavigator();
virtual String userAgent() const OVERRIDE;
+ void trace(Visitor*) { }
+
private:
explicit WorkerNavigator(const String&);

Powered by Google App Engine
This is Rietveld 408576698