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

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

Issue 1143083005: Replace ScriptStreamerTask with blink::Task and threadSafeBind() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use threadSafeBind(). Created 5 years, 7 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
« no previous file with comments | « Source/bindings/core/v8/ScriptStreamer.cpp ('k') | Source/bindings/core/v8/ScriptStreamerThread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptStreamerThread.h
diff --git a/Source/bindings/core/v8/ScriptStreamerThread.h b/Source/bindings/core/v8/ScriptStreamerThread.h
index 4bbcdde37dc6c08ab18e6b3b7d801b4689695adc..ce476198cd8c049733a2b004919149a217f1d297 100644
--- a/Source/bindings/core/v8/ScriptStreamerThread.h
+++ b/Source/bindings/core/v8/ScriptStreamerThread.h
@@ -34,6 +34,8 @@ public:
void taskDone();
+ static void runScriptStreamingTask(WTF::PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
+
private:
ScriptStreamerThread()
: m_runningTask(false) { }
@@ -52,18 +54,6 @@ private:
mutable Mutex m_mutex; // Guards m_runningTask.
};
-class ScriptStreamingTask : public WebThread::Task {
- WTF_MAKE_NONCOPYABLE(ScriptStreamingTask);
-public:
- ScriptStreamingTask(WTF::PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
- virtual void run() override;
-
-private:
- WTF::OwnPtr<v8::ScriptCompiler::ScriptStreamingTask> m_v8Task;
- ScriptStreamer* m_streamer;
-};
-
-
} // namespace blink
#endif // ScriptStreamerThread_h
« no previous file with comments | « Source/bindings/core/v8/ScriptStreamer.cpp ('k') | Source/bindings/core/v8/ScriptStreamerThread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698