| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FetchBlobDataConsumerHandle_h |
| 6 #define FetchBlobDataConsumerHandle_h |
| 7 |
| 8 #include "core/fetch/ResourceLoaderOptions.h" |
| 9 #include "core/loader/ThreadableLoader.h" |
| 10 #include "modules/fetch/FetchDataConsumerHandle.h" |
| 11 #include "platform/blob/BlobData.h" |
| 12 #include "wtf/PassOwnPtr.h" |
| 13 #include "wtf/PassRefPtr.h" |
| 14 #include "wtf/RefPtr.h" |
| 15 |
| 16 namespace blink { |
| 17 |
| 18 class ExecutionContext; |
| 19 |
| 20 // This class is not final for testing. |
| 21 class FetchBlobDataConsumerHandle : public FetchDataConsumerHandle { |
| 22 public: |
| 23 static PassOwnPtr<FetchDataConsumerHandle> create(ExecutionContext*, PassRef
Ptr<BlobDataHandle>); |
| 24 |
| 25 private: |
| 26 FetchBlobDataConsumerHandle(ExecutionContext*, PassRefPtr<BlobDataHandle>); |
| 27 Reader* obtainReaderInternal(Client*) override; |
| 28 |
| 29 virtual const char* debugName() const override { return "FetchBlobDataConsum
erHandle"; } |
| 30 |
| 31 class ReaderContext; |
| 32 RefPtr<ReaderContext> m_readerContext; |
| 33 }; |
| 34 |
| 35 } // namespace blink |
| 36 |
| 37 #endif // FetchBlobDataConsumerHandle_h |
| OLD | NEW |