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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.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/ScriptStreamer.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
index bf02e5b7c3832792f2177f1d48a074a9e752983a..ac2e4e1692dd61a8ba021e383bd97e0b5db4873b 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
+++ b/third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h
@@ -9,7 +9,7 @@
#include "platform/heap/Handle.h"
#include "wtf/Noncopyable.h"
#include "wtf/text/WTFString.h"
-
+#include <memory>
#include <v8.h>
namespace blink {
@@ -120,7 +120,7 @@ private:
bool m_detached;
SourceStream* m_stream;
- OwnPtr<v8::ScriptCompiler::StreamedSource> m_source;
+ std::unique_ptr<v8::ScriptCompiler::StreamedSource> m_source;
bool m_loadingFinished; // Whether loading from the network is done.
// Whether the V8 side processing is done. Will be used by the main thread
// and the streamer thread; guarded by m_mutex.
@@ -151,7 +151,7 @@ private:
// Encoding of the streamed script. Saved for sanity checking purposes.
v8::ScriptCompiler::StreamedSource::Encoding m_encoding;
- OwnPtr<WebTaskRunner> m_loadingTaskRunner;
+ std::unique_ptr<WebTaskRunner> m_loadingTaskRunner;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698