summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/workers/SharedWorker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/workers/SharedWorker.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/workers/SharedWorker.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/core/workers/SharedWorker.h b/chromium/third_party/WebKit/Source/core/workers/SharedWorker.h
index 8f7902a6875..8a767cfa426 100644
--- a/chromium/third_party/WebKit/Source/core/workers/SharedWorker.h
+++ b/chromium/third_party/WebKit/Source/core/workers/SharedWorker.h
@@ -33,14 +33,17 @@
#define SharedWorker_h
#include "core/workers/AbstractWorker.h"
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
namespace WebCore {
class ExceptionState;
-class SharedWorker : public AbstractWorker, public ScriptWrappable {
+class SharedWorker FINAL : public AbstractWorker, public ScriptWrappable, public WillBeHeapSupplementable<SharedWorker> {
+ WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SharedWorker);
public:
- static PassRefPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<SharedWorker> create(ExecutionContext*, const String& url, const String& name, ExceptionState&);
virtual ~SharedWorker();
MessagePort* port() const { return m_port.get(); }
@@ -52,6 +55,8 @@ public:
// Allows this SharedWorker + JS wrapper to be garbage collected.
void unsetPreventGC();
+ virtual void trace(Visitor*) OVERRIDE;
+
private:
explicit SharedWorker(ExecutionContext*);