#include "base/logging.h"
#include "base/stl_util.h"
-#include "webkit/common/fileapi/file_system_util.h"
+#include "storage/common/fileapi/file_system_util.h"
-using fileapi::FileSystemURL;
-using fileapi::FileSystemURLSet;
+using storage::FileSystemURL;
+using storage::FileSystemURLSet;
namespace sync_file_system {
typedef LocalFileSyncStatus::OriginAndType OriginAndType;
-OriginAndType GetOriginAndType(const fileapi::FileSystemURL& url) {
+OriginAndType GetOriginAndType(const storage::FileSystemURL& url) {
return std::make_pair(url.origin(), url.type());
}
// Ensure |path| has single trailing path-separator, so that we can use
// prefix-match to find descendants of |path| in an ordered container.
return base::FilePath(path.StripTrailingSeparators().value() +
- fileapi::VirtualPath::kSeparator);
+ storage::VirtualPath::kSeparator);
}
struct SetKeyHelper {
if (ContainsKey(paths, normalized_path))
return true;
- if (fileapi::VirtualPath::IsRootPath(normalized_path))
+ if (storage::VirtualPath::IsRootPath(normalized_path))
return false;
normalized_path =
- NormalizePath(fileapi::VirtualPath::DirName(normalized_path));
+ NormalizePath(storage::VirtualPath::DirName(normalized_path));
}
}