| 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" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType); | 60 static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType); |
| 61 static FetchDataLoader* createLoaderAsArrayBuffer(); | 61 static FetchDataLoader* createLoaderAsArrayBuffer(); |
| 62 static FetchDataLoader* createLoaderAsString(); | 62 static FetchDataLoader* createLoaderAsString(); |
| 63 static FetchDataLoader* createLoaderAsStream(Stream* outStream); | 63 static FetchDataLoader* createLoaderAsStream(Stream* outStream); |
| 64 | 64 |
| 65 virtual ~FetchDataLoader() { } | 65 virtual ~FetchDataLoader() { } |
| 66 | 66 |
| 67 // start() should be called only once on the created thread. | 67 // start() should be called only once on the created thread. |
| 68 // start() do not take the ownership of |handle|. | 68 // start() do not take the ownership of |handle|. |
| 69 // |handle| must not be locked when called. | 69 // |handle| must not be locked when called. |
| 70 virtual void start(FetchDataConsumerHandle* /* handle */, Client*) = 0; | 70 virtual void start(FetchDataConsumerHandle* /* handle */, Client*, std::uniq
ue_ptr<WebTaskRunner>) = 0; |
| 71 | 71 |
| 72 virtual void cancel() = 0; | 72 virtual void cancel() = 0; |
| 73 | 73 |
| 74 DEFINE_INLINE_VIRTUAL_TRACE() { } | 74 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // FetchDataLoader_h | 79 #endif // FetchDataLoader_h |
| OLD | NEW |