Index: Source/core/workers/SharedWorker.h |
diff --git a/Source/core/workers/SharedWorker.h b/Source/core/workers/SharedWorker.h |
index b19fd41b33210b4bfc574ec30e82a5b8f9ba607a..fbe41a4b0a747556dee55156ef6bc81e705bcc20 100644 |
--- a/Source/core/workers/SharedWorker.h |
+++ b/Source/core/workers/SharedWorker.h |
@@ -41,7 +41,7 @@ class ExceptionState; |
class SharedWorker FINAL : public AbstractWorker, public ScriptWrappable, public Supplementable<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(); } |
@@ -53,10 +53,12 @@ public: |
// Allows this SharedWorker + JS wrapper to be garbage collected. |
void unsetPreventGC(); |
+ void trace(Visitor*); |
+ |
private: |
explicit SharedWorker(ExecutionContext*); |
- RefPtr<MessagePort> m_port; |
+ RefPtrWillBeMember<MessagePort> m_port; |
}; |
} // namespace WebCore |