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