| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef FetchDataLoader_h | 5 #ifndef FetchDataLoader_h |
| 6 #define FetchDataLoader_h | 6 #define FetchDataLoader_h |
| 7 | 7 |
| 8 #include "core/dom/DOMArrayBuffer.h" | 8 #include "core/dom/DOMArrayBuffer.h" |
| 9 #include "core/streams/Stream.h" | 9 #include "core/streams/Stream.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| 11 #include "platform/blob/BlobData.h" | 11 #include "platform/blob/BlobData.h" |
| 12 #include "platform/heap/Handle.h" | 12 #include "platform/heap/Handle.h" |
| 13 #include "wtf/Forward.h" | 13 #include "platform/wtf/Forward.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class BytesConsumer; | 17 class BytesConsumer; |
| 18 | 18 |
| 19 // FetchDataLoader subclasses | 19 // FetchDataLoader subclasses |
| 20 // 1. take a BytesConsumer, | 20 // 1. take a BytesConsumer, |
| 21 // 2. read all data, and | 21 // 2. read all data, and |
| 22 // 3. call either didFetchDataLoaded...() on success or | 22 // 3. call either didFetchDataLoaded...() on success or |
| 23 // difFetchDataLoadFailed() otherwise | 23 // difFetchDataLoadFailed() otherwise |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void Start(BytesConsumer* /* consumer */, Client*) = 0; | 64 virtual void Start(BytesConsumer* /* consumer */, Client*) = 0; |
| 65 | 65 |
| 66 virtual void Cancel() = 0; | 66 virtual void Cancel() = 0; |
| 67 | 67 |
| 68 DEFINE_INLINE_VIRTUAL_TRACE() {} | 68 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace blink | 71 } // namespace blink |
| 72 | 72 |
| 73 #endif // FetchDataLoader_h | 73 #endif // FetchDataLoader_h |
| OLD | NEW |