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

Unified Diff: chrome/browser/sync_file_system/subtree_set.cc

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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: chrome/browser/sync_file_system/subtree_set.cc
diff --git a/chrome/browser/sync_file_system/subtree_set.cc b/chrome/browser/sync_file_system/subtree_set.cc
index ab71dbb4bb7f3a1659dc1701fa78bad7ea2b8b7b..344356e65ed5f535bf3ea7f5cc50776c8db69d20 100644
--- a/chrome/browser/sync_file_system/subtree_set.cc
+++ b/chrome/browser/sync_file_system/subtree_set.cc
@@ -6,7 +6,7 @@
#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"
namespace sync_file_system {
@@ -26,7 +26,7 @@ SubtreeSet::~SubtreeSet() {}
bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
// Check if |subtree_root| contains any of subtrees in the container.
if (ContainsKey(inclusive_ancestors_of_subtree_roots_,
@@ -34,8 +34,8 @@ bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
return false;
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
Subtrees::const_iterator found =
inclusive_ancestors_of_subtree_roots_.find(path.value());
@@ -48,7 +48,7 @@ bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
bool SubtreeSet::insert(const base::FilePath& subtree_root) {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
if (!IsDisjointWith(subtree_root))
return false;
@@ -56,8 +56,8 @@ bool SubtreeSet::insert(const base::FilePath& subtree_root) {
= Node(true, 1);
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
DCHECK(!inclusive_ancestors_of_subtree_roots_[path.value()]
.contained_as_subtree_root);
++(inclusive_ancestors_of_subtree_roots_[path.value()]
@@ -69,7 +69,7 @@ bool SubtreeSet::insert(const base::FilePath& subtree_root) {
bool SubtreeSet::erase(const base::FilePath& subtree_root) {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
{
Subtrees::iterator found =
@@ -83,8 +83,8 @@ bool SubtreeSet::erase(const base::FilePath& subtree_root) {
}
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
Subtrees::iterator found =
inclusive_ancestors_of_subtree_roots_.find(path.value());
@@ -103,7 +103,7 @@ bool SubtreeSet::erase(const base::FilePath& subtree_root) {
size_t SubtreeSet::size() const {
Subtrees::const_iterator found =
- inclusive_ancestors_of_subtree_roots_.find(fileapi::VirtualPath::kRoot);
+ inclusive_ancestors_of_subtree_roots_.find(storage::VirtualPath::kRoot);
if (found == inclusive_ancestors_of_subtree_roots_.end())
return 0;
return found->second.number_of_subtrees_below;
« no previous file with comments | « chrome/browser/sync_file_system/remote_file_sync_service.h ('k') | chrome/browser/sync_file_system/sync_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698