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

Unified Diff: Source/core/workers/WorkerNavigator.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/WorkerLocation.idl ('k') | Source/core/workers/WorkerNavigator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerNavigator.h
diff --git a/Source/core/workers/WorkerNavigator.h b/Source/core/workers/WorkerNavigator.h
index 850d706ba9b9bb6c03f858f37f9998bfc265245a..8463b67a49642a7210e105f5f37e3ff108b3cda5 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,18 @@
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 WillBeHeapSupplementable<WorkerNavigator> {
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&);
« no previous file with comments | « Source/core/workers/WorkerLocation.idl ('k') | Source/core/workers/WorkerNavigator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698