summaryrefslogtreecommitdiffstats
path: root/webkit/browser/fileapi/recursive_operation_delegate.cc
diff options
context:
space:
mode:
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-27 21:36:00 +0000
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-27 21:36:00 +0000
commit141bcc5b660175f90a351d0b1fc412eecbeb70e6 (patch)
tree8e168b52c493c7de6b18f7d06efeffa2971e5b03 /webkit/browser/fileapi/recursive_operation_delegate.cc
parent1f0a90767aadea0859d037be675106941338c5e5 (diff)
downloadchromium_src-141bcc5b660175f90a351d0b1fc412eecbeb70e6.zip
chromium_src-141bcc5b660175f90a351d0b1fc412eecbeb70e6.tar.gz
chromium_src-141bcc5b660175f90a351d0b1fc412eecbeb70e6.tar.bz2
Convert Media Galleries to use base::File
Unfortunately, this brings in changes to webkit/browser/fileapi, and once that changes, a lot of files have to be updated. The bright side is that most of the collateral changes are just trivial renaming of PlatformFileError -> File::Error and PlatformFileInfo -> File::Info BUG=322664 Review URL: https://codereview.chromium.org/145303002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247301 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/browser/fileapi/recursive_operation_delegate.cc')
-rw-r--r--webkit/browser/fileapi/recursive_operation_delegate.cc30
1 files changed, 15 insertions, 15 deletions
diff --git a/webkit/browser/fileapi/recursive_operation_delegate.cc b/webkit/browser/fileapi/recursive_operation_delegate.cc
index 7adc596..9ad2a8c 100644
--- a/webkit/browser/fileapi/recursive_operation_delegate.cc
+++ b/webkit/browser/fileapi/recursive_operation_delegate.cc
@@ -54,13 +54,13 @@ void RecursiveOperationDelegate::OnCancel() {
void RecursiveOperationDelegate::DidTryProcessFile(
const FileSystemURL& root,
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(pending_directory_stack_.empty());
DCHECK(pending_files_.empty());
DCHECK_EQ(1, inflight_operations_);
--inflight_operations_;
- if (canceled_ || error != base::PLATFORM_FILE_ERROR_NOT_A_FILE) {
+ if (canceled_ || error != base::File::FILE_ERROR_NOT_A_FILE) {
Done(error);
return;
}
@@ -86,14 +86,14 @@ void RecursiveOperationDelegate::ProcessNextDirectory() {
}
void RecursiveOperationDelegate::DidProcessDirectory(
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(pending_files_.empty());
DCHECK(!pending_directory_stack_.empty());
DCHECK(!pending_directory_stack_.top().empty());
DCHECK_EQ(1, inflight_operations_);
--inflight_operations_;
- if (canceled_ || error != base::PLATFORM_FILE_OK) {
+ if (canceled_ || error != base::File::FILE_OK) {
Done(error);
return;
}
@@ -108,14 +108,14 @@ void RecursiveOperationDelegate::DidProcessDirectory(
void RecursiveOperationDelegate::DidReadDirectory(
const FileSystemURL& parent,
- base::PlatformFileError error,
+ base::File::Error error,
const FileEntryList& entries,
bool has_more) {
DCHECK(pending_files_.empty());
DCHECK(!pending_directory_stack_.empty());
DCHECK_EQ(0, inflight_operations_);
- if (canceled_ || error != base::PLATFORM_FILE_OK) {
+ if (canceled_ || error != base::File::FILE_OK) {
Done(error);
return;
}
@@ -167,9 +167,9 @@ void RecursiveOperationDelegate::ProcessPendingFiles() {
}
void RecursiveOperationDelegate::DidProcessFile(
- base::PlatformFileError error) {
+ base::File::Error error) {
--inflight_operations_;
- if (error != base::PLATFORM_FILE_OK) {
+ if (error != base::File::FILE_OK) {
// If an error occurs, invoke Done immediately (even if there remain
// running operations). It is because in the callback, this instance is
// deleted.
@@ -186,7 +186,7 @@ void RecursiveOperationDelegate::ProcessSubDirectory() {
DCHECK_EQ(0, inflight_operations_);
if (canceled_) {
- Done(base::PLATFORM_FILE_ERROR_ABORT);
+ Done(base::File::FILE_ERROR_ABORT);
return;
}
@@ -200,7 +200,7 @@ void RecursiveOperationDelegate::ProcessSubDirectory() {
pending_directory_stack_.pop();
if (pending_directory_stack_.empty()) {
// All files/directories are processed.
- Done(base::PLATFORM_FILE_OK);
+ Done(base::File::FILE_OK);
return;
}
@@ -213,7 +213,7 @@ void RecursiveOperationDelegate::ProcessSubDirectory() {
}
void RecursiveOperationDelegate::DidPostProcessDirectory(
- base::PlatformFileError error) {
+ base::File::Error error) {
DCHECK(pending_files_.empty());
DCHECK(!pending_directory_stack_.empty());
DCHECK(!pending_directory_stack_.top().empty());
@@ -221,7 +221,7 @@ void RecursiveOperationDelegate::DidPostProcessDirectory(
--inflight_operations_;
pending_directory_stack_.top().pop();
- if (canceled_ || error != base::PLATFORM_FILE_OK) {
+ if (canceled_ || error != base::File::FILE_OK) {
Done(error);
return;
}
@@ -229,9 +229,9 @@ void RecursiveOperationDelegate::DidPostProcessDirectory(
ProcessSubDirectory();
}
-void RecursiveOperationDelegate::Done(base::PlatformFileError error) {
- if (canceled_ && error == base::PLATFORM_FILE_OK) {
- callback_.Run(base::PLATFORM_FILE_ERROR_ABORT);
+void RecursiveOperationDelegate::Done(base::File::Error error) {
+ if (canceled_ && error == base::File::FILE_OK) {
+ callback_.Run(base::File::FILE_ERROR_ABORT);
} else {
callback_.Run(error);
}