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

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

Issue 1274063003: [Loader] Make ThreadableLoader non-RefCounted and be managed by OwnPtr (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 4 years, 10 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 f0b47fa35e2aa5067cbbf8f04b75881c3252a035..82deb1a5643259f641aaae2d639d281c1e786486 100644
--- a/third_party/WebKit/Source/core/loader/ThreadableLoader.h
+++ b/third_party/WebKit/Source/core/loader/ThreadableLoader.h
@@ -128,7 +128,7 @@ struct CrossThreadCopier<ThreadableLoaderOptions> {
// - ResourceLoaderOptions argument will be passed to the FetchRequest
// that this ThreadableLoader creates. It can be altered e.g. when
// redirect happens.
-class CORE_EXPORT ThreadableLoader : public RefCounted<ThreadableLoader> {
+class CORE_EXPORT ThreadableLoader {
WTF_MAKE_NONCOPYABLE(ThreadableLoader);
public:
// ThreadableLoaderClient methods may not destroy the ThreadableLoader
@@ -168,8 +168,8 @@ public:
// ThreadableLoaderClient methods:
// - may call cancel()
// - can destroy the ThreadableLoader instance in them (by clearing
- // RefPtr<ThreadableLoader>).
- static PassRefPtr<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.

Powered by Google App Engine
This is Rietveld 408576698