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

Unified Diff: content/child/fileapi/file_system_dispatcher.cc

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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 | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/file_system_dispatcher.cc
diff --git a/content/child/fileapi/file_system_dispatcher.cc b/content/child/fileapi/file_system_dispatcher.cc
index 3abc6fcc8aeb5148498caaf19b3b0701b01e5930..d6c6303d2267ace03bd69bca66766a7daba68968 100644
--- a/content/child/fileapi/file_system_dispatcher.cc
+++ b/content/child/fileapi/file_system_dispatcher.cc
@@ -77,20 +77,20 @@ class FileSystemDispatcher::CallbackDispatcher {
~CallbackDispatcher() {}
void DidSucceed() {
- status_callback_.Run(base::PLATFORM_FILE_OK);
+ status_callback_.Run(base::File::FILE_OK);
}
- void DidFail(base::PlatformFileError error_code) {
+ void DidFail(base::File::Error error_code) {
error_callback_.Run(error_code);
}
void DidReadMetadata(
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
metadata_callback_.Run(file_info);
}
void DidCreateSnapshotFile(
- const base::PlatformFileInfo& file_info,
+ const base::File::Info& file_info,
const base::FilePath& platform_path,
int request_id) {
snapshot_callback_.Run(file_info, platform_path, request_id);
@@ -150,7 +150,7 @@ FileSystemDispatcher::~FileSystemDispatcher() {
int request_id = iter.GetCurrentKey();
CallbackDispatcher* dispatcher = iter.GetCurrentValue();
DCHECK(dispatcher);
- dispatcher->DidFail(base::PLATFORM_FILE_ERROR_ABORT);
+ dispatcher->DidFail(base::File::FILE_ERROR_ABORT);
dispatchers_.Remove(request_id);
}
}
@@ -367,7 +367,7 @@ void FileSystemDispatcher::OnDidSucceed(int request_id) {
}
void FileSystemDispatcher::OnDidReadMetadata(
- int request_id, const base::PlatformFileInfo& file_info) {
+ int request_id, const base::File::Info& file_info) {
CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
DCHECK(dispatcher);
dispatcher->DidReadMetadata(file_info);
@@ -375,7 +375,7 @@ void FileSystemDispatcher::OnDidReadMetadata(
}
void FileSystemDispatcher::OnDidCreateSnapshotFile(
- int request_id, const base::PlatformFileInfo& file_info,
+ int request_id, const base::File::Info& file_info,
const base::FilePath& platform_path) {
CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
DCHECK(dispatcher);
@@ -394,7 +394,7 @@ void FileSystemDispatcher::OnDidReadDirectory(
}
void FileSystemDispatcher::OnDidFail(
- int request_id, base::PlatformFileError error_code) {
+ int request_id, base::File::Error error_code) {
CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
DCHECK(dispatcher);
dispatcher->DidFail(error_code);
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698