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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.h

Issue 99813005: [SyncFileSystem] Add MetadataDatabase::TryNoSideEffectActivation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_backend/metadata_database.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database.h b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
index 2a54d85096cc801025fb42f71bab58a5e56d4091..c1b38e8a8cd5119e073fc549f222b29f1d4500b3 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database.h
@@ -273,6 +273,13 @@ class MetadataDatabase {
const FileDetails& updated_details,
const SyncStatusCallback& callback);
+ // Returns true if the tracker can be safely activated without deactivating
+ // any other trackers. In this case, tries to activate the tracker, and
+ // invokes |callback| upon completion.
+ // Returns false otherwise. In false case, |callback| will not be invoked.
+ bool TryNoSideEffectActivation(int64 tracker_id,
+ const SyncStatusCallback& callback);
+
// Changes the priority of the tracker to low.
void LowerTrackerPriority(int64 tracker_id);
void PromoteLowerPriorityTrackersToNormal();
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/metadata_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698