Index: webkit/plugins/ppapi/ppb_flash_impl.cc |
=================================================================== |
--- webkit/plugins/ppapi/ppb_flash_impl.cc (revision 140544) |
+++ webkit/plugins/ppapi/ppb_flash_impl.cc (working copy) |
@@ -13,6 +13,7 @@ |
#include "googleurl/src/gurl.h" |
#include "ppapi/c/dev/ppb_font_dev.h" |
#include "ppapi/c/private/ppb_flash.h" |
+#include "ppapi/shared_impl/file_path.h" |
#include "ppapi/shared_impl/file_type_conversion.h" |
#include "ppapi/shared_impl/time_conversion.h" |
#include "ppapi/shared_impl/var.h" |
@@ -30,7 +31,6 @@ |
#include "webkit/glue/clipboard_client.h" |
#include "webkit/glue/scoped_clipboard_writer_glue.h" |
#include "webkit/plugins/ppapi/common.h" |
-#include "webkit/plugins/ppapi/file_path.h" |
#include "webkit/plugins/ppapi/host_globals.h" |
#include "webkit/plugins/ppapi/plugin_delegate.h" |
#include "webkit/plugins/ppapi/plugin_module.h" |
@@ -398,7 +398,8 @@ |
base::PlatformFile base_file; |
base::PlatformFileError result = instance->delegate()->OpenFile( |
- PepperFilePath::MakeModuleLocal(instance->module(), path), |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path), |
flags, |
&base_file); |
*file = base_file; |
@@ -416,8 +417,10 @@ |
return PP_ERROR_FAILED; |
base::PlatformFileError result = instance->delegate()->RenameFile( |
- PepperFilePath::MakeModuleLocal(instance->module(), path_from), |
- PepperFilePath::MakeModuleLocal(instance->module(), path_to)); |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path_from), |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path_to)); |
return ::ppapi::PlatformFileErrorToPepperError(result); |
} |
@@ -432,7 +435,8 @@ |
return PP_ERROR_FAILED; |
base::PlatformFileError result = instance->delegate()->DeleteFileOrDir( |
- PepperFilePath::MakeModuleLocal(instance->module(), path), |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path), |
PPBoolToBool(recursive)); |
return ::ppapi::PlatformFileErrorToPepperError(result); |
} |
@@ -446,7 +450,8 @@ |
return PP_ERROR_FAILED; |
base::PlatformFileError result = instance->delegate()->CreateDir( |
- PepperFilePath::MakeModuleLocal(instance->module(), path)); |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path)); |
return ::ppapi::PlatformFileErrorToPepperError(result); |
} |
@@ -462,7 +467,8 @@ |
base::PlatformFileInfo file_info; |
base::PlatformFileError result = instance->delegate()->QueryFile( |
- PepperFilePath::MakeModuleLocal(instance->module(), path), |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path), |
&file_info); |
if (result == base::PLATFORM_FILE_OK) { |
info->size = file_info.size; |
@@ -488,9 +494,10 @@ |
return PP_ERROR_FAILED; |
*contents = NULL; |
- DirContents pepper_contents; |
+ ::ppapi::DirContents pepper_contents; |
base::PlatformFileError result = instance->delegate()->GetDirContents( |
- PepperFilePath::MakeModuleLocal(instance->module(), path), |
+ ::ppapi::PepperFilePath::MakeModuleLocal( |
+ instance->module()->name(), path), |
&pepper_contents); |
if (result != base::PLATFORM_FILE_OK) |
@@ -535,7 +542,7 @@ |
base::PlatformFile base_file; |
base::PlatformFileError result = instance->delegate()->OpenFile( |
- PepperFilePath::MakeAbsolute(file_ref->GetSystemPath()), |
+ ::ppapi::PepperFilePath::MakeAbsolute(file_ref->GetSystemPath()), |
flags, |
&base_file); |
*file = base_file; |
@@ -556,7 +563,7 @@ |
base::PlatformFileInfo file_info; |
base::PlatformFileError result = instance->delegate()->QueryFile( |
- PepperFilePath::MakeAbsolute(file_ref->GetSystemPath()), |
+ ::ppapi::PepperFilePath::MakeAbsolute(file_ref->GetSystemPath()), |
&file_info); |
if (result == base::PLATFORM_FILE_OK) { |
info->size = file_info.size; |