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 #include "modules/fetch/FetchDataLoader.h" | 5 #include "modules/fetch/FetchDataLoader.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/html/parser/TextResourceDecoder.h" | 8 #include "core/html/parser/TextResourceDecoder.h" |
8 #include "modules/fetch/BytesConsumer.h" | 9 #include "modules/fetch/BytesConsumer.h" |
9 #include "wtf/PtrUtil.h" | 10 #include "wtf/PtrUtil.h" |
10 #include "wtf/text/StringBuilder.h" | 11 #include "wtf/text/StringBuilder.h" |
11 #include "wtf/text/WTFString.h" | 12 #include "wtf/text/WTFString.h" |
12 #include "wtf/typed_arrays/ArrayBufferBuilder.h" | 13 #include "wtf/typed_arrays/ArrayBufferBuilder.h" |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 class FetchDataLoaderAsBlobHandle final : public FetchDataLoader, | 19 class FetchDataLoaderAsBlobHandle final : public FetchDataLoader, |
20 public BytesConsumer::Client { | 20 public BytesConsumer::Client { |
21 USING_GARBAGE_COLLECTED_MIXIN(FetchDataLoaderAsBlobHandle); | 21 USING_GARBAGE_COLLECTED_MIXIN(FetchDataLoaderAsBlobHandle); |
22 | 22 |
23 public: | 23 public: |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 | 318 |
319 FetchDataLoader* FetchDataLoader::createLoaderAsString() { | 319 FetchDataLoader* FetchDataLoader::createLoaderAsString() { |
320 return new FetchDataLoaderAsString(); | 320 return new FetchDataLoaderAsString(); |
321 } | 321 } |
322 | 322 |
323 FetchDataLoader* FetchDataLoader::createLoaderAsStream(Stream* outStream) { | 323 FetchDataLoader* FetchDataLoader::createLoaderAsStream(Stream* outStream) { |
324 return new FetchDataLoaderAsStream(outStream); | 324 return new FetchDataLoaderAsStream(outStream); |
325 } | 325 } |
326 | 326 |
327 } // namespace blink | 327 } // namespace blink |
OLD | NEW |