diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-17 05:07:23 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-17 05:07:23 +0000 |
commit | 023ad6abe4b833b9478992176b13b5a073895cdc (patch) | |
tree | 2f73c09690e0ccd85fff810c7db4404a5245aeca /ppapi | |
parent | 9e784dabf6278e848f081c7c24137ef8cc03671b (diff) | |
download | chromium_src-023ad6abe4b833b9478992176b13b5a073895cdc.zip chromium_src-023ad6abe4b833b9478992176b13b5a073895cdc.tar.gz chromium_src-023ad6abe4b833b9478992176b13b5a073895cdc.tar.bz2 |
Replace FilePath with base::FilePath.
This is im preparation for removing the 'using" in file_path.h
Review URL: https://codereview.chromium.org/12286020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183021 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/proxy/flash_file_resource.cc | 14 | ||||
-rw-r--r-- | ppapi/shared_impl/file_path.cc | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/ppapi/proxy/flash_file_resource.cc b/ppapi/proxy/flash_file_resource.cc index ac9e555..cd13a6d 100644 --- a/ppapi/proxy/flash_file_resource.cc +++ b/ppapi/proxy/flash_file_resource.cc @@ -60,9 +60,9 @@ int32_t FlashFileResource::RenameFile(PP_Instance /*instance*/, const char* path_from, const char* path_to) { PepperFilePath pepper_from(PepperFilePath::DOMAIN_MODULE_LOCAL, - FilePath::FromUTF8Unsafe(path_from)); + base::FilePath::FromUTF8Unsafe(path_from)); PepperFilePath pepper_to(PepperFilePath::DOMAIN_MODULE_LOCAL, - FilePath::FromUTF8Unsafe(path_to)); + base::FilePath::FromUTF8Unsafe(path_to)); int32_t error = SyncCall<IPC::Message>( BROWSER, PpapiHostMsg_FlashFile_RenameFile(pepper_from, pepper_to)); @@ -74,7 +74,7 @@ int32_t FlashFileResource::DeleteFileOrDir(PP_Instance /*instance*/, const char* path, PP_Bool recursive) { PepperFilePath pepper_path(PepperFilePath::DOMAIN_MODULE_LOCAL, - FilePath::FromUTF8Unsafe(path)); + base::FilePath::FromUTF8Unsafe(path)); int32_t error = SyncCall<IPC::Message>( BROWSER, PpapiHostMsg_FlashFile_DeleteFileOrDir(pepper_path, @@ -86,7 +86,7 @@ int32_t FlashFileResource::DeleteFileOrDir(PP_Instance /*instance*/, int32_t FlashFileResource::CreateDir(PP_Instance /*instance*/, const char* path) { PepperFilePath pepper_path(PepperFilePath::DOMAIN_MODULE_LOCAL, - FilePath::FromUTF8Unsafe(path)); + base::FilePath::FromUTF8Unsafe(path)); int32_t error = SyncCall<IPC::Message>(BROWSER, PpapiHostMsg_FlashFile_CreateDir(pepper_path)); @@ -105,7 +105,7 @@ int32_t FlashFileResource::GetDirContents(PP_Instance /*instance*/, PP_DirContents_Dev** contents) { ppapi::DirContents entries; PepperFilePath pepper_path(PepperFilePath::DOMAIN_MODULE_LOCAL, - FilePath::FromUTF8Unsafe(path)); + base::FilePath::FromUTF8Unsafe(path)); int32_t error = SyncCall<PpapiPluginMsg_FlashFile_GetDirContentsReply>( BROWSER, PpapiHostMsg_FlashFile_GetDirContents(pepper_path), &entries); @@ -182,7 +182,7 @@ int32_t FlashFileResource::OpenFileHelper(const std::string& path, !file) return PP_ERROR_BADARGUMENT; - PepperFilePath pepper_path(domain_type, FilePath::FromUTF8Unsafe(path)); + PepperFilePath pepper_path(domain_type, base::FilePath::FromUTF8Unsafe(path)); IPC::Message unused; ResourceMessageReplyParams reply_params; @@ -207,7 +207,7 @@ int32_t FlashFileResource::QueryFileHelper(const std::string& path, return PP_ERROR_BADARGUMENT; base::PlatformFileInfo file_info; - PepperFilePath pepper_path(domain_type, FilePath::FromUTF8Unsafe(path)); + PepperFilePath pepper_path(domain_type, base::FilePath::FromUTF8Unsafe(path)); int32_t error = SyncCall<PpapiPluginMsg_FlashFile_QueryFileReply>(BROWSER, PpapiHostMsg_FlashFile_QueryFile(pepper_path), &file_info); diff --git a/ppapi/shared_impl/file_path.cc b/ppapi/shared_impl/file_path.cc index 1502d89..d05b1b3 100644 --- a/ppapi/shared_impl/file_path.cc +++ b/ppapi/shared_impl/file_path.cc @@ -11,7 +11,7 @@ PepperFilePath::PepperFilePath() path_() { } -PepperFilePath::PepperFilePath(Domain domain, const FilePath& path) +PepperFilePath::PepperFilePath(Domain domain, const base::FilePath& path) : domain_(domain), path_(path) { // TODO(viettrungluu): Should we DCHECK() some things here? |