| Index: webkit/plugins/ppapi/ppb_flash_impl.cc
|
| diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc
|
| index cfcca2194b1df021fd93c248150386b8c9930d95..aa911d72502ef314fffa3c791f1c81c8345a2897 100644
|
| --- a/webkit/plugins/ppapi/ppb_flash_impl.cc
|
| +++ b/webkit/plugins/ppapi/ppb_flash_impl.cc
|
| @@ -529,6 +529,22 @@ int32_t PPB_Flash_Impl::GetDirContents(PP_Instance pp_instance,
|
| return PP_OK;
|
| }
|
|
|
| +int32_t PPB_Flash_Impl::CreateTemporaryFile(PP_Instance instance,
|
| + PP_FileHandle* file) {
|
| + if (!file)
|
| + return PP_ERROR_BADARGUMENT;
|
| +
|
| + PluginInstance* plugin_instance = HostGlobals::Get()->GetInstance(instance);
|
| + if (!plugin_instance) {
|
| + *file = PP_kInvalidFileHandle;
|
| + return PP_ERROR_FAILED;
|
| + }
|
| +
|
| + base::PlatformFileError result =
|
| + plugin_instance->delegate()->CreateTemporaryFile(file);
|
| + return ::ppapi::PlatformFileErrorToPepperError(result);
|
| +}
|
| +
|
| int32_t PPB_Flash_Impl::OpenFileRef(PP_Instance pp_instance,
|
| PP_Resource file_ref_id,
|
| int32_t mode,
|
|
|