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 9eb13bcf7d86241579ee0db4167d87318faa7676..65a5dfbc42057188e20a6318ad5c6d45381f3635 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h |
@@ -9,7 +9,9 @@ |
#include "platform/TaskSynchronizer.h" |
#include "public/platform/WebThread.h" |
#include "wtf/Functional.h" |
-#include <memory> |
+#include "wtf/OwnPtr.h" |
+#include "wtf/PassOwnPtr.h" |
+ |
#include <v8.h> |
namespace blink { |
@@ -35,7 +37,7 @@ public: |
void taskDone(); |
- static void runScriptStreamingTask(std::unique_ptr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*); |
+ static void runScriptStreamingTask(PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*); |
private: |
ScriptStreamerThread() |
@@ -50,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. |
- std::unique_ptr<WebThread> m_thread; |
+ OwnPtr<WebThread> m_thread; |
bool m_runningTask; |
mutable Mutex m_mutex; // Guards m_runningTask. |
}; |