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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp

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/modules/fetch/FetchBlobDataConsumerHandle.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp b/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp
index 01016800c2ca73813452f96c551ce9436ff36c43..b56caee26df88a4ec6d5f0eec1bbe0feaba2ab20 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.cpp
@@ -100,7 +100,7 @@ public:
}
private:
- PassRefPtr<ThreadableLoader> createLoader(ExecutionContext* executionContext, ThreadableLoaderClient* client) const
+ PassOwnPtr<ThreadableLoader> createLoader(ExecutionContext* executionContext, ThreadableLoaderClient* client) const
{
ThreadableLoaderOptions options;
options.preflightPolicy = ConsiderPreflight;
@@ -151,14 +151,14 @@ private:
RefPtr<BlobDataHandle> m_blobDataHandle;
Persistent<FetchBlobDataConsumerHandle::LoaderFactory> m_loaderFactory;
- RefPtr<ThreadableLoader> m_loader;
+ OwnPtr<ThreadableLoader> m_loader;
bool m_receivedResponse;
};
class DefaultLoaderFactory final : public FetchBlobDataConsumerHandle::LoaderFactory {
public:
- PassRefPtr<ThreadableLoader> create(
+ PassOwnPtr<ThreadableLoader> create(
ExecutionContext& executionContext,
ThreadableLoaderClient* client,
const ThreadableLoaderOptions& options,

Powered by Google App Engine
This is Rietveld 408576698