Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Unified Diff: webkit/fileapi/file_system_path_manager.cc

Issue 6864040: Fixed file/directory url resolution for external mount point provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/file_system_path_manager.cc
===================================================================
--- webkit/fileapi/file_system_path_manager.cc (revision 82172)
+++ webkit/fileapi/file_system_path_manager.cc (working copy)
@@ -54,19 +54,19 @@
FileSystemPathManager::~FileSystemPathManager() {}
-void FileSystemPathManager::GetFileSystemRootPath(
+void FileSystemPathManager::ValidateFileSystemRootAndGetURL(
const GURL& origin_url, fileapi::FileSystemType type,
bool create, GetRootPathCallback* callback_ptr) {
switch (type) {
case kFileSystemTypeTemporary:
case kFileSystemTypePersistent:
- sandbox_provider_->GetFileSystemRootPath(
+ sandbox_provider_->ValidateFileSystemRootAndGetURL(
origin_url, type, create, callback_ptr);
break;
case kFileSystemTypeExternal:
if (external_provider_.get()) {
- external_provider_->GetFileSystemRootPath(
+ external_provider_->ValidateFileSystemRootAndGetURL(
origin_url, type, create, callback_ptr);
} else {
callback_ptr->Run(false, FilePath(), std::string());
@@ -79,18 +79,18 @@
}
}
-FilePath FileSystemPathManager::GetFileSystemRootPathOnFileThread(
+FilePath FileSystemPathManager::ValidateFileSystemRootAndGetPathOnFileThread(
const GURL& origin_url, FileSystemType type, const FilePath& virtual_path,
bool create) {
switch (type) {
case kFileSystemTypeTemporary:
case kFileSystemTypePersistent:
- return sandbox_provider_->GetFileSystemRootPathOnFileThread(
+ return sandbox_provider_->ValidateFileSystemRootAndGetPathOnFileThread(
origin_url, type, virtual_path, create);
break;
case kFileSystemTypeExternal:
return external_provider_.get() ?
- external_provider_->GetFileSystemRootPathOnFileThread(
+ external_provider_->ValidateFileSystemRootAndGetPathOnFileThread(
origin_url, type, virtual_path, create) :
FilePath();
case kFileSystemTypeUnknown:

Powered by Google App Engine
This is Rietveld 408576698