diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:16:05 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-26 00:16:05 +0000 |
commit | 494184c1d68dfbdaa51af78f680e59dd0bfc6143 (patch) | |
tree | f897b02dc34dbc4e860c9dad561311d1a9e16e34 /webkit/plugins/ppapi/mock_plugin_delegate.cc | |
parent | 287b86bfa8405f38377eb4b6c33c28b8a926fb2a (diff) | |
download | chromium_src-494184c1d68dfbdaa51af78f680e59dd0bfc6143.zip chromium_src-494184c1d68dfbdaa51af78f680e59dd0bfc6143.tar.gz chromium_src-494184c1d68dfbdaa51af78f680e59dd0bfc6143.tar.bz2 |
Pepper/Flapper: Refactor module-local file stuff to make it easier/nicer to add file ref versions.
BUG=none
TEST=everything still works
Review URL: http://codereview.chromium.org/6599015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/mock_plugin_delegate.cc')
-rw-r--r-- | webkit/plugins/ppapi/mock_plugin_delegate.cc | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/webkit/plugins/ppapi/mock_plugin_delegate.cc b/webkit/plugins/ppapi/mock_plugin_delegate.cc index 54e55ee..6f55e9b 100644 --- a/webkit/plugins/ppapi/mock_plugin_delegate.cc +++ b/webkit/plugins/ppapi/mock_plugin_delegate.cc @@ -113,44 +113,38 @@ bool MockPluginDelegate::ReadDirectory( return false; } -base::PlatformFileError MockPluginDelegate::OpenModuleLocalFile( - const std::string& module_name, - const FilePath& path, +base::PlatformFileError MockPluginDelegate::OpenFile( + const PepperFilePath& path, int flags, base::PlatformFile* file) { return base::PLATFORM_FILE_ERROR_FAILED; } -base::PlatformFileError MockPluginDelegate::RenameModuleLocalFile( - const std::string& module_name, - const FilePath& path_from, - const FilePath& path_to) { +base::PlatformFileError MockPluginDelegate::RenameFile( + const PepperFilePath& from_path, + const PepperFilePath& to_path) { return base::PLATFORM_FILE_ERROR_FAILED; } -base::PlatformFileError MockPluginDelegate::DeleteModuleLocalFileOrDir( - const std::string& module_name, - const FilePath& path, +base::PlatformFileError MockPluginDelegate::DeleteFileOrDir( + const PepperFilePath& path, bool recursive) { return base::PLATFORM_FILE_ERROR_FAILED; } -base::PlatformFileError MockPluginDelegate::CreateModuleLocalDir( - const std::string& module_name, - const FilePath& path) { +base::PlatformFileError MockPluginDelegate::CreateDir( + const PepperFilePath& path) { return base::PLATFORM_FILE_ERROR_FAILED; } -base::PlatformFileError MockPluginDelegate::QueryModuleLocalFile( - const std::string& module_name, - const FilePath& path, +base::PlatformFileError MockPluginDelegate::QueryFile( + const PepperFilePath& path, base::PlatformFileInfo* info) { return base::PLATFORM_FILE_ERROR_FAILED; } -base::PlatformFileError MockPluginDelegate::GetModuleLocalDirContents( - const std::string& module_name, - const FilePath& path, +base::PlatformFileError MockPluginDelegate::GetDirContents( + const PepperFilePath& path, DirContents* contents) { return base::PLATFORM_FILE_ERROR_FAILED; } |