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

Unified Diff: Source/core/workers/Worker.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/Worker.h
diff --git a/Source/core/workers/Worker.h b/Source/core/workers/Worker.h
index 1f1067bdd2663de34797b3c710e1a5cf73a7bad9..efc683c4faae768ddf59d5a6a66f5d797283c7df 100644
--- a/Source/core/workers/Worker.h
+++ b/Source/core/workers/Worker.h
@@ -48,7 +48,7 @@ class WorkerScriptLoader;
class Worker FINAL : public AbstractWorker, public ScriptWrappable, private WorkerScriptLoaderClient {
public:
- static PassRefPtr<Worker> create(ExecutionContext*, const String& url, ExceptionState&);
+ static PassRefPtrWillBeRawPtr<Worker> create(ExecutionContext*, const String& url, ExceptionState&);
virtual ~Worker();
virtual const AtomicString& interfaceName() const OVERRIDE;
@@ -62,6 +62,8 @@ public:
DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
+ void trace(Visitor*);
Mads Ager (chromium) 2014/02/24 13:27:53 This will not work if you have a pointer with type
+
private:
explicit Worker(ExecutionContext*);
@@ -69,7 +71,7 @@ private:
virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) OVERRIDE;
virtual void notifyFinished() OVERRIDE;
- RefPtr<WorkerScriptLoader> m_scriptLoader;
+ RefPtrWillBeMember<WorkerScriptLoader> m_scriptLoader;
WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
haraken 2014/02/24 13:28:36 It's not obvious to me that this raw pointer is sa
};

Powered by Google App Engine
This is Rietveld 408576698