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

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

Issue 187203004: [SyncFS] Improve debug logs of MetadataDatabaseIndex (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/drive_backend/metadata_database_index.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
index e37c50e78348a436abb8ad69830060b7c5696985..581f790b1f4d21d42173094868482a67674cb93e 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index.h
@@ -92,6 +92,8 @@ class MetadataDatabaseIndex {
int64 parent_tracker_id,
const std::string& title) const;
+ std::vector<int64> GetFileTrackerIDsByParent(int64 parent_tracker_id) const;
+
// Returns the |file_id| of a file that has multiple trackers.
std::string PickMultiTrackerFileID() const;
@@ -106,9 +108,13 @@ class MetadataDatabaseIndex {
// Demotes a dirty tracker.
void DemoteDirtyTracker(int64 tracker_id);
+ bool HasDemotedDirtyTracker() const;
+
// Promotes all demoted dirty trackers to normal dirty trackers.
void PromoteDemotedDirtyTrackers();
+ std::vector<std::string> GetRegisteredAppIDs() const;
+
private:
typedef base::ScopedPtrHashMap<std::string, FileMetadata> MetadataByID;
typedef base::ScopedPtrHashMap<int64, FileTracker> TrackerByID;

Powered by Google App Engine
This is Rietveld 408576698