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

Unified Diff: webkit/plugins/ppapi/ppb_file_io_impl.cc

Issue 6286038: Add initial code to do filename munging in the FileSystem.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
Index: webkit/plugins/ppapi/ppb_file_io_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_file_io_impl.cc (revision 72915)
+++ webkit/plugins/ppapi/ppb_file_io_impl.cc (working copy)
@@ -276,7 +276,7 @@
DCHECK(!info_); // If |info_|, a callback should be pending (caught above).
info_ = info;
- if (!base::FileUtilProxy::GetFileInfoFromPlatformFile(
+ if (!base::FileUtilProxy::GetInstance()->GetFileInfoFromPlatformFile(
instance()->delegate()->GetFileThreadMessageLoopProxy(), file_,
callback_factory_.NewCallback(&PPB_FileIO_Impl::QueryInfoCallback)))
return PP_ERROR_FAILED;
@@ -292,7 +292,7 @@
if (rv != PP_OK)
return rv;
- if (!base::FileUtilProxy::Touch(
+ if (!base::FileUtilProxy::GetInstance()->Touch(
instance()->delegate()->GetFileThreadMessageLoopProxy(),
file_, base::Time::FromDoubleT(last_access_time),
base::Time::FromDoubleT(last_modified_time),
@@ -311,7 +311,7 @@
if (rv != PP_OK)
return rv;
- if (!base::FileUtilProxy::Read(
+ if (!base::FileUtilProxy::GetInstance()->Read(
instance()->delegate()->GetFileThreadMessageLoopProxy(),
file_, offset, buffer, bytes_to_read,
callback_factory_.NewCallback(&PPB_FileIO_Impl::ReadWriteCallback)))
@@ -329,7 +329,7 @@
if (rv != PP_OK)
return rv;
- if (!base::FileUtilProxy::Write(
+ if (!base::FileUtilProxy::GetInstance()->Write(
instance()->delegate()->GetFileThreadMessageLoopProxy(),
file_, offset, buffer, bytes_to_write,
callback_factory_.NewCallback(&PPB_FileIO_Impl::ReadWriteCallback)))
@@ -345,7 +345,7 @@
if (rv != PP_OK)
return rv;
- if (!base::FileUtilProxy::Truncate(
+ if (!base::FileUtilProxy::GetInstance()->Truncate(
instance()->delegate()->GetFileThreadMessageLoopProxy(),
file_, length,
callback_factory_.NewCallback(&PPB_FileIO_Impl::StatusCallback)))
@@ -360,7 +360,7 @@
if (rv != PP_OK)
return rv;
- if (!base::FileUtilProxy::Flush(
+ if (!base::FileUtilProxy::GetInstance()->Flush(
instance()->delegate()->GetFileThreadMessageLoopProxy(), file_,
callback_factory_.NewCallback(&PPB_FileIO_Impl::StatusCallback)))
return PP_ERROR_FAILED;
@@ -371,7 +371,7 @@
void PPB_FileIO_Impl::Close() {
if (file_ != base::kInvalidPlatformFileValue) {
- base::FileUtilProxy::Close(
+ base::FileUtilProxy::GetInstance()->Close(
instance()->delegate()->GetFileThreadMessageLoopProxy(), file_, NULL);
file_ = base::kInvalidPlatformFileValue;
}

Powered by Google App Engine
This is Rietveld 408576698