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

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

Issue 2342233002: Remove Fetch[Blob|FormData]ConsumerHandle (Closed)
Patch Set: rebase Created 4 years, 3 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/FetchFormDataConsumerHandle.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.h b/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.h
deleted file mode 100644
index 90ee589db49e5ec486ee109804e42b25b4347f3c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/modules/fetch/FetchFormDataConsumerHandle.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef FetchFormDataConsumerHandle_h
-#define FetchFormDataConsumerHandle_h
-
-#include "core/dom/DOMArrayBuffer.h"
-#include "core/dom/DOMArrayBufferView.h"
-#include "modules/ModulesExport.h"
-#include "modules/fetch/FetchBlobDataConsumerHandle.h"
-#include "modules/fetch/FetchDataConsumerHandle.h"
-#include "platform/blob/BlobData.h"
-#include "platform/network/EncodedFormData.h"
-#include "wtf/Forward.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
-#include "wtf/ThreadSafeRefCounted.h"
-#include <memory>
-
-namespace blink {
-
-class ExecutionContext;
-
-// FetchFormDataConsumerHandle is a handle made from an EncodedFormData. It
-// provides drainAsFormData in the associated Reader.
-class MODULES_EXPORT FetchFormDataConsumerHandle final : public FetchDataConsumerHandle {
- WTF_MAKE_NONCOPYABLE(FetchFormDataConsumerHandle);
-public:
- static std::unique_ptr<FetchDataConsumerHandle> create(const String& body);
- static std::unique_ptr<FetchDataConsumerHandle> create(DOMArrayBuffer* body);
- static std::unique_ptr<FetchDataConsumerHandle> create(DOMArrayBufferView* body);
- static std::unique_ptr<FetchDataConsumerHandle> create(const void* data, size_t);
- static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, PassRefPtr<EncodedFormData> body);
- // Use FetchBlobDataConsumerHandle for blobs.
-
- ~FetchFormDataConsumerHandle() override;
-
- static std::unique_ptr<FetchDataConsumerHandle> createForTest(
- ExecutionContext*,
- PassRefPtr<EncodedFormData> body,
- FetchBlobDataConsumerHandle::LoaderFactory*);
-
-private:
- class Context;
- class SimpleContext;
- class ComplexContext;
- class ReaderImpl;
-
- explicit FetchFormDataConsumerHandle(const String& body);
- FetchFormDataConsumerHandle(const void*, size_t);
- FetchFormDataConsumerHandle(ExecutionContext*, PassRefPtr<EncodedFormData> body, FetchBlobDataConsumerHandle::LoaderFactory* = nullptr);
-
- std::unique_ptr<Reader> obtainFetchDataReader(Client*) override;
-
- const char* debugName() const override { return "FetchFormDataConsumerHandle"; }
-
- RefPtr<Context> m_context;
-};
-
-} // namespace blink
-
-#endif // FetchFormDataConsumerHandle_h

Powered by Google App Engine
This is Rietveld 408576698