| Index: third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
|
| diff --git a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
|
| index 5e971e4667668bcb98b2e41819d9724de874b28d..15de1cfa1660b0217161841d4446863988692cb7 100644
|
| --- a/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
|
| +++ b/third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h
|
| @@ -8,8 +8,6 @@
|
| #include "modules/ModulesExport.h"
|
| #include "modules/fetch/FetchDataConsumerHandle.h"
|
| #include "public/platform/WebDataConsumerHandle.h"
|
| -#include "wtf/Allocator.h"
|
| -#include "wtf/WeakPtr.h"
|
| #include <memory>
|
|
|
| namespace blink {
|
| @@ -19,37 +17,11 @@ namespace blink {
|
| MODULES_EXPORT std::unique_ptr<WebDataConsumerHandle>
|
| createWaitingDataConsumerHandle();
|
|
|
| -// Returns a handle that returns Done for read / beginRead and
|
| -// UnexpectedError for endRead.
|
| -MODULES_EXPORT std::unique_ptr<WebDataConsumerHandle>
|
| -createDoneDataConsumerHandle();
|
| -
|
| -// Returns a handle that returns UnexpectedError for read / beginRead /
|
| -// endRead.
|
| -MODULES_EXPORT std::unique_ptr<WebDataConsumerHandle>
|
| -createUnexpectedErrorDataConsumerHandle();
|
| -
|
| // Returns a FetchDataConsumerHandle that wraps WebDataConsumerHandle.
|
| MODULES_EXPORT std::unique_ptr<FetchDataConsumerHandle>
|
| createFetchDataConsumerHandleFromWebHandle(
|
| std::unique_ptr<WebDataConsumerHandle>);
|
|
|
| -// A helper class to call Client::didGetReadable() asynchronously after
|
| -// Reader creation.
|
| -// NotifyOnReaderCreationHelper must be owned by a reader and
|
| -// |client| must be the client of the reader.
|
| -class NotifyOnReaderCreationHelper final {
|
| - DISALLOW_NEW();
|
| -
|
| - public:
|
| - NotifyOnReaderCreationHelper(WebDataConsumerHandle::Client* /* client */);
|
| -
|
| - private:
|
| - void notify(WebDataConsumerHandle::Client*);
|
| -
|
| - WeakPtrFactory<NotifyOnReaderCreationHelper> m_factory;
|
| -};
|
| -
|
| } // namespace blink
|
|
|
| #endif // DataConsumerHandleUtil_h
|
|
|