Lines Matching refs:loader
55 FileReaderLoader loader(FileReaderLoader::ReadAsArrayBuffer, 0);
56 startLoading(scriptExecutionContext, loader, blob, ec);
58 return loader.arrayBufferResult();
66 FileReaderLoader loader(FileReaderLoader::ReadAsBinaryString, 0);
67 startLoading(scriptExecutionContext, loader, blob, ec);
68 return loader.stringResult();
76 FileReaderLoader loader(FileReaderLoader::ReadAsText, 0);
77 loader.setEncoding(encoding);
78 startLoading(scriptExecutionContext, loader, blob, ec);
79 return loader.stringResult();
87 FileReaderLoader loader(FileReaderLoader::ReadAsDataURL, 0);
88 loader.setDataType(blob->type());
89 startLoading(scriptExecutionContext, loader, blob, ec);
90 return loader.stringResult();
93 void FileReaderSync::startLoading(ScriptExecutionContext* scriptExecutionContext, FileReaderLoader& loader, Blob* blob, ExceptionCode& ec)
95 loader.start(scriptExecutionContext, blob);
96 ec = FileException::ErrorCodeToExceptionCode(loader.errorCode());