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

Unified Diff: third_party/WebKit/Source/modules/fetch/DataConsumerHandleUtil.h

Issue 2392823002: Remove create[Done|UnexpectedError]DataConsumerHandle (Closed)
Patch Set: fix Created 4 years, 2 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/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

Powered by Google App Engine
This is Rietveld 408576698