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

Unified Diff: content/child/fileapi/webfilesystem_impl.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.cc ('k') | content/child/fileapi/webfilewriter_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilesystem_impl.cc
diff --git a/content/child/fileapi/webfilesystem_impl.cc b/content/child/fileapi/webfilesystem_impl.cc
index 59e9d5645f63110e02b7d6cb415f3af639541aa7..902c12d33e891c5edc1831b2d864c72c36b4edfd 100644
--- a/content/child/fileapi/webfilesystem_impl.cc
+++ b/content/child/fileapi/webfilesystem_impl.cc
@@ -171,8 +171,8 @@ void ResolveURLCallbackAdapter(
void StatusCallbackAdapter(int thread_id, int callbacks_id,
WaitableCallbackResults* waitable_results,
- base::PlatformFileError error) {
- if (error == base::PLATFORM_FILE_OK) {
+ base::File::Error error) {
+ if (error == base::File::FILE_OK) {
CallbackFileSystemCallbacks(
thread_id, callbacks_id, waitable_results,
&WebFileSystemCallbacks::didSucceed, MakeTuple());
@@ -180,15 +180,15 @@ void StatusCallbackAdapter(int thread_id, int callbacks_id,
CallbackFileSystemCallbacks(
thread_id, callbacks_id, waitable_results,
&WebFileSystemCallbacks::didFail,
- MakeTuple(fileapi::PlatformFileErrorToWebFileError(error)));
+ MakeTuple(fileapi::FileErrorToWebFileError(error)));
}
}
void ReadMetadataCallbackAdapter(int thread_id, int callbacks_id,
WaitableCallbackResults* waitable_results,
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
WebFileInfo web_file_info;
- webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info);
+ webkit_glue::FileInfoToWebFileInfo(file_info, &web_file_info);
CallbackFileSystemCallbacks(
thread_id, callbacks_id, waitable_results,
&WebFileSystemCallbacks::didReadMetadata,
@@ -216,7 +216,7 @@ void DidCreateFileWriter(
const GURL& path,
blink::WebFileWriterClient* client,
base::MessageLoopProxy* main_thread_loop,
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
WebFileSystemImpl* filesystem =
WebFileSystemImpl::ThreadSpecificInstance(NULL);
if (!filesystem)
@@ -243,7 +243,7 @@ void CreateFileWriterCallbackAdapter(
base::MessageLoopProxy* main_thread_loop,
const GURL& path,
blink::WebFileWriterClient* client,
- const base::PlatformFileInfo& file_info) {
+ const base::File::Info& file_info) {
DispatchResultsClosure(
thread_id, callbacks_id, waitable_results,
base::Bind(&DidCreateFileWriter, callbacks_id, path, client,
@@ -253,7 +253,7 @@ void CreateFileWriterCallbackAdapter(
void DidCreateSnapshotFile(
int callbacks_id,
base::MessageLoopProxy* main_thread_loop,
- const base::PlatformFileInfo& file_info,
+ const base::File::Info& file_info,
const base::FilePath& platform_path,
int request_id) {
WebFileSystemImpl* filesystem =
@@ -265,7 +265,7 @@ void DidCreateSnapshotFile(
filesystem->GetAndUnregisterCallbacks(callbacks_id);
WebFileInfo web_file_info;
- webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info);
+ webkit_glue::FileInfoToWebFileInfo(file_info, &web_file_info);
web_file_info.platformPath = platform_path.AsUTF16Unsafe();
callbacks.didCreateSnapshotFile(web_file_info);
@@ -279,7 +279,7 @@ void CreateSnapshotFileCallbackAdapter(
int thread_id, int callbacks_id,
WaitableCallbackResults* waitable_results,
base::MessageLoopProxy* main_thread_loop,
- const base::PlatformFileInfo& file_info,
+ const base::File::Info& file_info,
const base::FilePath& platform_path,
int request_id) {
DispatchResultsClosure(
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.cc ('k') | content/child/fileapi/webfilewriter_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698