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

Unified Diff: Source/core/workers/SharedWorker.h

Issue 177073004: Oilpan: move core/workers to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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
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

Powered by Google App Engine
This is Rietveld 408576698