summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h b/chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h
index 61c06183fad..0750e8fff7a 100644
--- a/chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h
+++ b/chromium/third_party/WebKit/Source/core/workers/WorkerNavigator.h
@@ -27,21 +27,30 @@
#define WorkerNavigator_h
#include "bindings/v8/ScriptWrappable.h"
-#include "core/frame/NavigatorBase.h"
+#include "core/frame/NavigatorCPU.h"
+#include "core/frame/NavigatorID.h"
+#include "core/frame/NavigatorOnLine.h"
#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
-class WorkerNavigator : public RefCounted<WorkerNavigator>, public ScriptWrappable, public NavigatorBase, public Supplementable<WorkerNavigator> {
+class WorkerNavigator FINAL : public RefCountedWillBeGarbageCollectedFinalized<WorkerNavigator>, public ScriptWrappable, public NavigatorCPU, public NavigatorID, public NavigatorOnLine, public WillBeHeapSupplementable<WorkerNavigator> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(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&);