| 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&);
|
|
|
|
|