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

Unified Diff: chrome/browser/sync_file_system/remote_change_processor.h

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/remote_change_processor.h
diff --git a/chrome/browser/sync_file_system/remote_change_processor.h b/chrome/browser/sync_file_system/remote_change_processor.h
index 57eb8beeab1cab378c42afb03925e6c5f2f48a1b..4f987869e3f31cd6c692b06b26a84153167c49e0 100644
--- a/chrome/browser/sync_file_system/remote_change_processor.h
+++ b/chrome/browser/sync_file_system/remote_change_processor.h
@@ -14,7 +14,7 @@ namespace base {
class FilePath;
}
-namespace fileapi {
+namespace storage {
class FileSystemURL;
}
@@ -48,7 +48,7 @@ class RemoteChangeProcessor {
// on conflict resolution, but NOT for applying local changes to the remote,
// which is supposed to be done by LocalChangeProcessor)
virtual void PrepareForProcessRemoteChange(
- const fileapi::FileSystemURL& url,
+ const storage::FileSystemURL& url,
const PrepareChangeCallback& callback) = 0;
// This is called to apply the remote |change|. If the change type is
@@ -58,31 +58,28 @@ class RemoteChangeProcessor {
// This may fail with an error but should NOT result in a conflict
// (as we must have checked the change status in PrepareRemoteSync and
// have disabled any further writing).
- virtual void ApplyRemoteChange(
- const FileChange& change,
- const base::FilePath& local_path,
- const fileapi::FileSystemURL& url,
- const SyncStatusCallback& callback) = 0;
+ virtual void ApplyRemoteChange(const FileChange& change,
+ const base::FilePath& local_path,
+ const storage::FileSystemURL& url,
+ const SyncStatusCallback& callback) = 0;
// Finalizes the remote sync started by PrepareForProcessRemoteChange.
// This clears sync flag on |url| to unlock the file for future writes/sync.
// Clears all local changes if |clear_local_changes| is true.
// This should be set to true when the remote sync service reconciled or
// processed the existing local changes while processing a remote change.
- virtual void FinalizeRemoteSync(
- const fileapi::FileSystemURL& url,
- bool clear_local_changes,
- const base::Closure& completion_callback) = 0;
+ virtual void FinalizeRemoteSync(const storage::FileSystemURL& url,
+ bool clear_local_changes,
+ const base::Closure& completion_callback) = 0;
// Records a fake local change so that the change will be processed in the
// next local sync.
// This is called when the remote side wants to trigger a local sync
// to propagate the local change to the remote change (e.g. to
// resolve a conflict by uploading the local file).
- virtual void RecordFakeLocalChange(
- const fileapi::FileSystemURL& url,
- const FileChange& change,
- const SyncStatusCallback& callback) = 0;
+ virtual void RecordFakeLocalChange(const storage::FileSystemURL& url,
+ const FileChange& change,
+ const SyncStatusCallback& callback) = 0;
private:
DISALLOW_COPY_AND_ASSIGN(RemoteChangeProcessor);

Powered by Google App Engine
This is Rietveld 408576698