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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h

Issue 1848443008: Simplify ScriptStreamer lifetime handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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: third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
index 8af85a43b319a00c1a0c169a7625d86266cbf47d..ad5966b257ae5dd58f36d00313019cee9179ac54 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
@@ -27,7 +27,7 @@ public:
static void shutdown();
static ScriptStreamerThread* shared();
- void postTask(WTF::PassOwnPtr<WTF::CrossThreadClosure>);
+ void postTask(PassOwnPtr<CrossThreadClosure>);
bool isRunningTask() const
{
@@ -37,7 +37,7 @@ public:
void taskDone();
- static void runScriptStreamingTask(WTF::PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
+ static void runScriptStreamingTask(PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
private:
ScriptStreamerThread()
@@ -52,7 +52,7 @@ private:
// At the moment, we only use one thread, so we can only stream one script
// at a time. FIXME: Use a thread pool and stream multiple scripts.
- WTF::OwnPtr<WebThread> m_thread;
+ OwnPtr<WebThread> m_thread;
bool m_runningTask;
mutable Mutex m_mutex; // Guards m_runningTask.
};

Powered by Google App Engine
This is Rietveld 408576698