OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 #include "core/fileapi/FileReaderLoader.h" | 33 #include "core/fileapi/FileReaderLoader.h" |
34 | 34 |
35 #include "FetchInitiatorTypeNames.h" | 35 #include "FetchInitiatorTypeNames.h" |
36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
37 #include "core/fetch/TextResourceDecoder.h" | 37 #include "core/fetch/TextResourceDecoder.h" |
38 #include "core/fileapi/Blob.h" | 38 #include "core/fileapi/Blob.h" |
39 #include "core/fileapi/FileReaderLoaderClient.h" | 39 #include "core/fileapi/FileReaderLoaderClient.h" |
40 #include "core/fileapi/Stream.h" | 40 #include "core/fileapi/Stream.h" |
41 #include "core/loader/ThreadableLoader.h" | 41 #include "core/loader/ThreadableLoader.h" |
42 #include "core/platform/network/ResourceRequest.h" | |
43 #include "core/platform/network/ResourceResponse.h" | |
44 #include "platform/blob/BlobRegistry.h" | 42 #include "platform/blob/BlobRegistry.h" |
45 #include "platform/blob/BlobURL.h" | 43 #include "platform/blob/BlobURL.h" |
| 44 #include "platform/network/ResourceRequest.h" |
| 45 #include "platform/network/ResourceResponse.h" |
46 #include "wtf/ArrayBuffer.h" | 46 #include "wtf/ArrayBuffer.h" |
47 #include "wtf/PassOwnPtr.h" | 47 #include "wtf/PassOwnPtr.h" |
48 #include "wtf/PassRefPtr.h" | 48 #include "wtf/PassRefPtr.h" |
49 #include "wtf/RefPtr.h" | 49 #include "wtf/RefPtr.h" |
50 #include "wtf/Vector.h" | 50 #include "wtf/Vector.h" |
51 #include "wtf/text/Base64.h" | 51 #include "wtf/text/Base64.h" |
52 #include "wtf/text/StringBuilder.h" | 52 #include "wtf/text/StringBuilder.h" |
53 | 53 |
54 using namespace std; | 54 using namespace std; |
55 | 55 |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 m_stringResult = builder.toString(); | 394 m_stringResult = builder.toString(); |
395 } | 395 } |
396 | 396 |
397 void FileReaderLoader::setEncoding(const String& encoding) | 397 void FileReaderLoader::setEncoding(const String& encoding) |
398 { | 398 { |
399 if (!encoding.isEmpty()) | 399 if (!encoding.isEmpty()) |
400 m_encoding = WTF::TextEncoding(encoding); | 400 m_encoding = WTF::TextEncoding(encoding); |
401 } | 401 } |
402 | 402 |
403 } // namespace WebCore | 403 } // namespace WebCore |
OLD | NEW |