Index: third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.h |
diff --git a/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.h b/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.h |
deleted file mode 100644 |
index e7c867b783b60584965cfd0972f3d94a9daf83e0..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/modules/fetch/FetchBlobDataConsumerHandle.h |
+++ /dev/null |
@@ -1,52 +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 FetchBlobDataConsumerHandle_h |
-#define FetchBlobDataConsumerHandle_h |
- |
-#include "core/fetch/ResourceLoaderOptions.h" |
-#include "core/loader/ThreadableLoader.h" |
-#include "modules/ModulesExport.h" |
-#include "modules/fetch/FetchDataConsumerHandle.h" |
-#include "platform/blob/BlobData.h" |
-#include "platform/heap/Handle.h" |
-#include "wtf/PassRefPtr.h" |
-#include "wtf/RefPtr.h" |
-#include <memory> |
- |
-namespace blink { |
- |
-class ExecutionContext; |
-// A FetchBlobDataConsumerHandle is created from a blob handle and it will |
-// return a valid handle from drainAsBlobDataHandle as much as possible. |
-class MODULES_EXPORT FetchBlobDataConsumerHandle final : public FetchDataConsumerHandle { |
- WTF_MAKE_NONCOPYABLE(FetchBlobDataConsumerHandle); |
-public: |
- class MODULES_EXPORT LoaderFactory : public GarbageCollectedFinalized<LoaderFactory> { |
- public: |
- virtual ThreadableLoader* create(ExecutionContext&, ThreadableLoaderClient*, const ThreadableLoaderOptions&, const ResourceLoaderOptions&) = 0; |
- virtual ~LoaderFactory() { } |
- DEFINE_INLINE_VIRTUAL_TRACE() { } |
- }; |
- |
- static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, PassRefPtr<BlobDataHandle>); |
- |
- // For testing. |
- static std::unique_ptr<FetchDataConsumerHandle> create(ExecutionContext*, PassRefPtr<BlobDataHandle>, LoaderFactory*); |
- |
- ~FetchBlobDataConsumerHandle(); |
- |
-private: |
- FetchBlobDataConsumerHandle(ExecutionContext*, PassRefPtr<BlobDataHandle>, LoaderFactory*); |
- std::unique_ptr<Reader> obtainFetchDataReader(Client*) override; |
- |
- const char* debugName() const override { return "FetchBlobDataConsumerHandle"; } |
- |
- class ReaderContext; |
- RefPtr<ReaderContext> m_readerContext; |
-}; |
- |
-} // namespace blink |
- |
-#endif // FetchBlobDataConsumerHandle_h |