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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build 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/fake_remote_change_processor.cc
diff --git a/chrome/browser/sync_file_system/fake_remote_change_processor.cc b/chrome/browser/sync_file_system/fake_remote_change_processor.cc
index ce53a41e2ab761b1fc0a33ed908ed5fa469c1b8e..56316a9b1c7d541e206a9af417ba7252971501e7 100644
--- a/chrome/browser/sync_file_system/fake_remote_change_processor.cc
+++ b/chrome/browser/sync_file_system/fake_remote_change_processor.cc
@@ -25,11 +25,11 @@ FakeRemoteChangeProcessor::~FakeRemoteChangeProcessor() {
}
void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
const PrepareChangeCallback& callback) {
SyncFileMetadata local_metadata;
- if (fileapi::VirtualPath::IsRootPath(url.path())) {
+ if (storage::VirtualPath::IsRootPath(url.path())) {
// Origin root directory case.
local_metadata = SyncFileMetadata(
SYNC_FILE_TYPE_DIRECTORY, 0, base::Time::Now());
@@ -66,12 +66,12 @@ void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange(
void FakeRemoteChangeProcessor::ApplyRemoteChange(
const FileChange& change,
const base::FilePath& local_path,
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
const SyncStatusCallback& callback) {
SyncStatusCode status = SYNC_STATUS_UNKNOWN;
- base::FilePath ancestor = fileapi::VirtualPath::DirName(url.path());
+ base::FilePath ancestor = storage::VirtualPath::DirName(url.path());
while (true) {
- fileapi::FileSystemURL ancestor_url =
+ storage::FileSystemURL ancestor_url =
CreateSyncableFileSystemURL(url.origin(), ancestor);
if (!ancestor_url.is_valid())
break;
@@ -87,7 +87,7 @@ void FakeRemoteChangeProcessor::ApplyRemoteChange(
}
}
- base::FilePath ancestor_parent = fileapi::VirtualPath::DirName(ancestor);
+ base::FilePath ancestor_parent = storage::VirtualPath::DirName(ancestor);
if (ancestor == ancestor_parent)
break;
ancestor = ancestor_parent;
@@ -101,14 +101,14 @@ void FakeRemoteChangeProcessor::ApplyRemoteChange(
}
void FakeRemoteChangeProcessor::FinalizeRemoteSync(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
bool clear_local_changes,
const base::Closure& completion_callback) {
base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, completion_callback);
}
void FakeRemoteChangeProcessor::RecordFakeLocalChange(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
const FileChange& change,
const SyncStatusCallback& callback) {
local_changes_[url].Update(change);
@@ -117,7 +117,7 @@ void FakeRemoteChangeProcessor::RecordFakeLocalChange(
}
void FakeRemoteChangeProcessor::UpdateLocalFileMetadata(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
const FileChange& change) {
if (change.IsAddOrUpdate()) {
local_file_metadata_[url] = SyncFileMetadata(
@@ -129,7 +129,7 @@ void FakeRemoteChangeProcessor::UpdateLocalFileMetadata(
}
void FakeRemoteChangeProcessor::ClearLocalChanges(
- const fileapi::FileSystemURL& url) {
+ const storage::FileSystemURL& url) {
local_changes_.erase(url);
}
@@ -143,7 +143,7 @@ void FakeRemoteChangeProcessor::VerifyConsistency(
EXPECT_EQ(expected_changes.size(), applied_changes_.size());
for (URLToFileChangesMap::const_iterator itr = applied_changes_.begin();
itr != applied_changes_.end(); ++itr) {
- const fileapi::FileSystemURL& url = itr->first;
+ const storage::FileSystemURL& url = itr->first;
URLToFileChangesMap::const_iterator found = expected_changes.find(url);
if (found == expected_changes.end()) {
EXPECT_TRUE(found != expected_changes.end())
« no previous file with comments | « chrome/browser/sync_file_system/fake_remote_change_processor.h ('k') | chrome/browser/sync_file_system/file_status_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698