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

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

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First attempt to land. Created 4 years, 6 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 65a5dfbc42057188e20a6318ad5c6d45381f3635..9eb13bcf7d86241579ee0db4167d87318faa7676 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.h
@@ -9,9 +9,7 @@
#include "platform/TaskSynchronizer.h"
#include "public/platform/WebThread.h"
#include "wtf/Functional.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassOwnPtr.h"
-
+#include <memory>
#include <v8.h>
namespace blink {
@@ -37,7 +35,7 @@ public:
void taskDone();
- static void runScriptStreamingTask(PassOwnPtr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
+ static void runScriptStreamingTask(std::unique_ptr<v8::ScriptCompiler::ScriptStreamingTask>, ScriptStreamer*);
private:
ScriptStreamerThread()
@@ -52,7 +50,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.
- OwnPtr<WebThread> m_thread;
+ std::unique_ptr<WebThread> m_thread;
bool m_runningTask;
mutable Mutex m_mutex; // Guards m_runningTask.
};

Powered by Google App Engine
This is Rietveld 408576698