| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/fileapi/Blob.h" | 36 #include "core/fileapi/Blob.h" |
| 37 #include "core/fileapi/FileReaderLoaderClient.h" | 37 #include "core/fileapi/FileReaderLoaderClient.h" |
| 38 #include "core/html/parser/TextResourceDecoder.h" | 38 #include "core/html/parser/TextResourceDecoder.h" |
| 39 #include "core/loader/ThreadableLoader.h" | 39 #include "core/loader/ThreadableLoader.h" |
| 40 #include "platform/blob/BlobRegistry.h" | 40 #include "platform/blob/BlobRegistry.h" |
| 41 #include "platform/blob/BlobURL.h" | 41 #include "platform/blob/BlobURL.h" |
| 42 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" | 42 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" |
| 43 #include "platform/loader/fetch/ResourceError.h" | 43 #include "platform/loader/fetch/ResourceError.h" |
| 44 #include "platform/loader/fetch/ResourceRequest.h" | 44 #include "platform/loader/fetch/ResourceRequest.h" |
| 45 #include "platform/loader/fetch/ResourceResponse.h" | 45 #include "platform/loader/fetch/ResourceResponse.h" |
| 46 #include "platform/wtf/PassRefPtr.h" |
| 47 #include "platform/wtf/PtrUtil.h" |
| 48 #include "platform/wtf/RefPtr.h" |
| 49 #include "platform/wtf/Vector.h" |
| 50 #include "platform/wtf/text/Base64.h" |
| 51 #include "platform/wtf/text/StringBuilder.h" |
| 46 #include "public/platform/WebURLRequest.h" | 52 #include "public/platform/WebURLRequest.h" |
| 47 #include "wtf/PassRefPtr.h" | |
| 48 #include "wtf/PtrUtil.h" | |
| 49 #include "wtf/RefPtr.h" | |
| 50 #include "wtf/Vector.h" | |
| 51 #include "wtf/text/Base64.h" | |
| 52 #include "wtf/text/StringBuilder.h" | |
| 53 | 53 |
| 54 namespace blink { | 54 namespace blink { |
| 55 | 55 |
| 56 FileReaderLoader::FileReaderLoader(ReadType read_type, | 56 FileReaderLoader::FileReaderLoader(ReadType read_type, |
| 57 FileReaderLoaderClient* client) | 57 FileReaderLoaderClient* client) |
| 58 : read_type_(read_type), | 58 : read_type_(read_type), |
| 59 client_(client), | 59 client_(client), |
| 60 is_raw_data_converted_(false), | 60 is_raw_data_converted_(false), |
| 61 string_result_(""), | 61 string_result_(""), |
| 62 finished_loading_(false), | 62 finished_loading_(false), |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 string_result_ = builder.ToString(); | 385 string_result_ = builder.ToString(); |
| 386 } | 386 } |
| 387 | 387 |
| 388 void FileReaderLoader::SetEncoding(const String& encoding) { | 388 void FileReaderLoader::SetEncoding(const String& encoding) { |
| 389 if (!encoding.IsEmpty()) | 389 if (!encoding.IsEmpty()) |
| 390 encoding_ = WTF::TextEncoding(encoding); | 390 encoding_ = WTF::TextEncoding(encoding); |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace blink | 393 } // namespace blink |
| OLD | NEW |