Chromium Code Reviews| Index: Source/modules/fetch/FetchBlobDataConsumerHandle.h |
| diff --git a/Source/modules/fetch/FetchBlobDataConsumerHandle.h b/Source/modules/fetch/FetchBlobDataConsumerHandle.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..670b83ab20cc92865cbb46519fe8f45ff3c059e4 |
| --- /dev/null |
| +++ b/Source/modules/fetch/FetchBlobDataConsumerHandle.h |
| @@ -0,0 +1,42 @@ |
| +// 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/fetch/FetchDataConsumerHandle.h" |
| +#include "platform/blob/BlobData.h" |
| +#include "wtf/PassOwnPtr.h" |
| +#include "wtf/PassRefPtr.h" |
| +#include "wtf/RefPtr.h" |
| + |
| +namespace blink { |
| + |
| +class ExecutionContext; |
| +class FetchBlobDataConsumerHandle final : public FetchDataConsumerHandle { |
| +public: |
|
yhirano
2015/06/23 08:44:08
You need to declare the empty destructor in the he
hiroshige
2015/06/23 09:34:54
Done.
|
| + class LoaderFactory : public GarbageCollected<LoaderFactory> { |
|
yhirano
2015/06/23 08:44:08
Sorry, I need GarbageCollectedFinalized, because g
hiroshige
2015/06/23 09:34:54
Done.
|
| + public: |
| + virtual PassRefPtr<ThreadableLoader> create(ExecutionContext&, ThreadableLoaderClient*, const ResourceRequest&, const ThreadableLoaderOptions&, const ResourceLoaderOptions&) = 0; |
| + DEFINE_INLINE_VIRTUAL_TRACE() { } |
| + }; |
| + |
| + static PassOwnPtr<FetchDataConsumerHandle> create(ExecutionContext*, PassRefPtr<BlobDataHandle>); |
| + static PassOwnPtr<FetchDataConsumerHandle> create(ExecutionContext*, PassRefPtr<BlobDataHandle>, LoaderFactory*); |
| + |
| +private: |
| + FetchBlobDataConsumerHandle(ExecutionContext*, PassRefPtr<BlobDataHandle>, LoaderFactory*); |
| + Reader* obtainReaderInternal(Client*) override; |
| + |
| + virtual const char* debugName() const override { return "FetchBlobDataConsumerHandle"; } |
| + |
| + class ReaderContext; |
| + RefPtr<ReaderContext> m_readerContext; |
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // FetchBlobDataConsumerHandle_h |