| 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 "core/html/parser/TextResourceDecoder.h" | 7 #include "core/html/parser/TextResourceDecoder.h" |
| 8 #include "wtf/ArrayBufferBuilder.h" | |
| 9 #include "wtf/text/StringBuilder.h" | 8 #include "wtf/text/StringBuilder.h" |
| 10 #include "wtf/text/WTFString.h" | 9 #include "wtf/text/WTFString.h" |
| 10 #include "wtf/typed_arrays/ArrayBufferBuilder.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 class FetchDataLoaderAsBlobHandle | 16 class FetchDataLoaderAsBlobHandle |
| 17 : public FetchDataLoader | 17 : public FetchDataLoader |
| 18 , public WebDataConsumerHandle::Client { | 18 , public WebDataConsumerHandle::Client { |
| 19 public: | 19 public: |
| 20 explicit FetchDataLoaderAsBlobHandle(const String& mimeType) | 20 explicit FetchDataLoaderAsBlobHandle(const String& mimeType) |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 { | 392 { |
| 393 return new FetchDataLoaderAsString(); | 393 return new FetchDataLoaderAsString(); |
| 394 } | 394 } |
| 395 | 395 |
| 396 FetchDataLoader* FetchDataLoader::createLoaderAsStream(Stream* outStream) | 396 FetchDataLoader* FetchDataLoader::createLoaderAsStream(Stream* outStream) |
| 397 { | 397 { |
| 398 return new FetchDataLoaderAsStream(outStream); | 398 return new FetchDataLoaderAsStream(outStream); |
| 399 } | 399 } |
| 400 | 400 |
| 401 } // namespace blink | 401 } // namespace blink |
| OLD | NEW |