Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: Source/core/fileapi/FileReaderSync.cpp

Issue 17761003: Remove FileException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/fileapi/FileReaderLoaderClient.h ('k') | Source/modules/filesystem/DOMFileSystemSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fileapi/FileReaderSync.cpp
diff --git a/Source/core/fileapi/FileReaderSync.cpp b/Source/core/fileapi/FileReaderSync.cpp
index c2f5047fbd4e2225bd301be17e33aa594b36ce90..1cacad86b7c05ceedfc3de26da7a3c3891f7232c 100644
--- a/Source/core/fileapi/FileReaderSync.cpp
+++ b/Source/core/fileapi/FileReaderSync.cpp
@@ -29,11 +29,10 @@
*/
#include "config.h"
-
#include "core/fileapi/FileReaderSync.h"
+#include "core/dom/ExceptionCode.h"
#include "core/fileapi/Blob.h"
-#include "core/fileapi/FileException.h"
#include "core/fileapi/FileReaderLoader.h"
#include <wtf/ArrayBuffer.h>
#include <wtf/PassRefPtr.h>
@@ -48,7 +47,7 @@ FileReaderSync::FileReaderSync()
PassRefPtr<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
{
if (!blob) {
- ec = NOT_FOUND_ERR;
+ ec = FSNotFoundError;
return 0;
}
@@ -61,7 +60,7 @@ PassRefPtr<ArrayBuffer> FileReaderSync::readAsArrayBuffer(ScriptExecutionContext
String FileReaderSync::readAsBinaryString(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
{
if (!blob) {
- ec = NOT_FOUND_ERR;
+ ec = FSNotFoundError;
return String();
}
@@ -73,7 +72,7 @@ String FileReaderSync::readAsBinaryString(ScriptExecutionContext* scriptExecutio
String FileReaderSync::readAsText(ScriptExecutionContext* scriptExecutionContext, Blob* blob, const String& encoding, ExceptionCode& ec)
{
if (!blob) {
- ec = NOT_FOUND_ERR;
+ ec = FSNotFoundError;
return String();
}
@@ -86,7 +85,7 @@ String FileReaderSync::readAsText(ScriptExecutionContext* scriptExecutionContext
String FileReaderSync::readAsDataURL(ScriptExecutionContext* scriptExecutionContext, Blob* blob, ExceptionCode& ec)
{
if (!blob) {
- ec = NOT_FOUND_ERR;
+ ec = FSNotFoundError;
return String();
}
@@ -99,7 +98,7 @@ String FileReaderSync::readAsDataURL(ScriptExecutionContext* scriptExecutionCont
void FileReaderSync::startLoading(ScriptExecutionContext* scriptExecutionContext, FileReaderLoader& loader, Blob* blob, ExceptionCode& ec)
{
loader.start(scriptExecutionContext, blob);
- ec = FileException::ErrorCodeToExceptionCode(loader.errorCode());
+ ec = FileError::ErrorCodeToExceptionCode(loader.errorCode());
}
} // namespace WebCore
« no previous file with comments | « Source/core/fileapi/FileReaderLoaderClient.h ('k') | Source/modules/filesystem/DOMFileSystemSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698