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

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

Issue 185563011: [SyncFS] Change RemoteFileSyncService interface to accept per-app conflict resolution policy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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_file_sync_service.h
diff --git a/chrome/browser/sync_file_system/remote_file_sync_service.h b/chrome/browser/sync_file_system/remote_file_sync_service.h
index 18b1f3cecd3ea9f1e081f6eacce9b007ecdc900a..22cec45bc8e23c1d5df9057740035a2a9dbfbae2 100644
--- a/chrome/browser/sync_file_system/remote_file_sync_service.h
+++ b/chrome/browser/sync_file_system/remote_file_sync_service.h
@@ -206,11 +206,17 @@ class RemoteFileSyncService {
// Sets the conflict resolution policy. Returns SYNC_STATUS_OK on success,
// or returns an error code if the given policy is not supported or had
// an error.
+ virtual SyncStatusCode SetDefaultConflictResolutionPolicy(
+ ConflictResolutionPolicy policy) = 0;
virtual SyncStatusCode SetConflictResolutionPolicy(
+ const GURL& origin,
ConflictResolutionPolicy policy) = 0;
// Gets the conflict resolution policy.
- virtual ConflictResolutionPolicy GetConflictResolutionPolicy() const = 0;
+ virtual ConflictResolutionPolicy GetDefaultConflictResolutionPolicy()
+ const = 0;
+ virtual ConflictResolutionPolicy GetConflictResolutionPolicy(
+ const GURL& origin) const = 0;
// Returns a list of remote versions with their metadata.
// This method is typically called for a file which is in conflicting state.

Powered by Google App Engine
This is Rietveld 408576698