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

Unified Diff: third_party/WebKit/Source/core/loader/ThreadableLoader.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/core/loader/ThreadableLoader.h
diff --git a/third_party/WebKit/Source/core/loader/ThreadableLoader.h b/third_party/WebKit/Source/core/loader/ThreadableLoader.h
index 3d2b2d20aff83707451037ea35d51a712d6890a3..fc360b1d52b0be4befaff2e89bf5dfc62747065d 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoader.h
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoader.h
@@ -36,7 +36,7 @@
#include "platform/CrossThreadCopier.h"
#include "wtf/Allocator.h"
#include "wtf/Noncopyable.h"
-#include <memory>
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -166,8 +166,8 @@ public:
// ThreadableLoaderClient methods:
// - may call cancel()
// - can destroy the ThreadableLoader instance in them (by clearing
- // std::unique_ptr<ThreadableLoader>).
- static std::unique_ptr<ThreadableLoader> create(ExecutionContext&, ThreadableLoaderClient*, const ThreadableLoaderOptions&, const ResourceLoaderOptions&);
+ // OwnPtr<ThreadableLoader>).
+ static PassOwnPtr<ThreadableLoader> create(ExecutionContext&, ThreadableLoaderClient*, const ThreadableLoaderOptions&, const ResourceLoaderOptions&);
// The methods on the ThreadableLoaderClient passed on create() call
// may be called synchronous to start() call.
« no previous file with comments | « third_party/WebKit/Source/core/loader/TextTrackLoader.h ('k') | third_party/WebKit/Source/core/loader/ThreadableLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698