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

Unified Diff: third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.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/modules/fetch/BodyStreamBuffer.h
diff --git a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
index ba0226be023b0e5903a29a57d1e1abcc4f719f46..2ef8bc9dc00eddab27ea3531e05f5cee03247882 100644
--- a/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
+++ b/third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.h
@@ -17,7 +17,8 @@
#include "modules/fetch/FetchDataLoader.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebDataConsumerHandle.h"
-#include <memory>
+#include "wtf/OwnPtr.h"
+#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -31,7 +32,7 @@ public:
// Needed because we have to release |m_reader| promptly.
EAGERLY_FINALIZE();
// |handle| cannot be null and cannot be locked.
- BodyStreamBuffer(ScriptState*, std::unique_ptr<FetchDataConsumerHandle> /* handle */);
+ BodyStreamBuffer(ScriptState*, PassOwnPtr<FetchDataConsumerHandle> /* handle */);
// |ReadableStreamOperations::isReadableStream(stream)| must hold.
BodyStreamBuffer(ScriptState*, ScriptValue stream);
@@ -80,11 +81,11 @@ private:
void processData();
void endLoading();
void stopLoading();
- std::unique_ptr<FetchDataConsumerHandle> releaseHandle();
+ PassOwnPtr<FetchDataConsumerHandle> releaseHandle();
RefPtr<ScriptState> m_scriptState;
- std::unique_ptr<FetchDataConsumerHandle> m_handle;
- std::unique_ptr<FetchDataConsumerHandle::Reader> m_reader;
+ OwnPtr<FetchDataConsumerHandle> m_handle;
+ OwnPtr<FetchDataConsumerHandle::Reader> m_reader;
Member<ReadableByteStream> m_stream;
// We need this member to keep it alive while loading.
Member<FetchDataLoader> m_loader;
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Body.cpp ('k') | third_party/WebKit/Source/modules/fetch/BodyStreamBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698