| Index: webkit/plugins/ppapi/ppb_file_ref_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_file_ref_impl.cc b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
|
| index cdd044b154d39a83fe4b1d8d542e3ca895f23341..d8b4b569985baa69bf41d8f494f7d67da6edc986 100644
|
| --- a/webkit/plugins/ppapi/ppb_file_ref_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_file_ref_impl.cc
|
| @@ -21,6 +21,7 @@
|
| #include "webkit/plugins/ppapi/ppb_file_system_impl.h"
|
| #include "webkit/plugins/ppapi/resource_helper.h"
|
|
|
| +using ppapi::ApiCallbackType;
|
| using ppapi::HostResource;
|
| using ppapi::PPB_FileRef_CreateInfo;
|
| using ppapi::PPTimeToTime;
|
| @@ -162,9 +163,7 @@ PP_Resource PPB_FileRef_Impl::GetParent() {
|
| }
|
|
|
| int32_t PPB_FileRef_Impl::MakeDirectory(PP_Bool make_ancestors,
|
| - PP_CompletionCallback callback) {
|
| - if (!callback.func)
|
| - return PP_ERROR_BLOCKS_MAIN_THREAD;
|
| + ::ppapi::ApiCallbackType callback) {
|
| if (!IsValidNonExternalFileSystem())
|
| return PP_ERROR_NOACCESS;
|
|
|
| @@ -180,9 +179,7 @@ int32_t PPB_FileRef_Impl::MakeDirectory(PP_Bool make_ancestors,
|
|
|
| int32_t PPB_FileRef_Impl::Touch(PP_Time last_access_time,
|
| PP_Time last_modified_time,
|
| - PP_CompletionCallback callback) {
|
| - if (!callback.func)
|
| - return PP_ERROR_BLOCKS_MAIN_THREAD;
|
| + ::ppapi::ApiCallbackType callback) {
|
| if (!IsValidNonExternalFileSystem())
|
| return PP_ERROR_NOACCESS;
|
|
|
| @@ -198,9 +195,7 @@ int32_t PPB_FileRef_Impl::Touch(PP_Time last_access_time,
|
| return PP_OK_COMPLETIONPENDING;
|
| }
|
|
|
| -int32_t PPB_FileRef_Impl::Delete(PP_CompletionCallback callback) {
|
| - if (!callback.func)
|
| - return PP_ERROR_BLOCKS_MAIN_THREAD;
|
| +int32_t PPB_FileRef_Impl::Delete(::ppapi::ApiCallbackType callback) {
|
| if (!IsValidNonExternalFileSystem())
|
| return PP_ERROR_NOACCESS;
|
|
|
| @@ -215,9 +210,7 @@ int32_t PPB_FileRef_Impl::Delete(PP_CompletionCallback callback) {
|
| }
|
|
|
| int32_t PPB_FileRef_Impl::Rename(PP_Resource new_pp_file_ref,
|
| - PP_CompletionCallback callback) {
|
| - if (!callback.func)
|
| - return PP_ERROR_BLOCKS_MAIN_THREAD;
|
| + ::ppapi::ApiCallbackType callback) {
|
| EnterResourceNoLock<PPB_FileRef_API> enter(new_pp_file_ref, true);
|
| if (enter.failed())
|
| return PP_ERROR_BADRESOURCE;
|
|
|