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

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

Issue 340243004: [SyncFS] Remove a friendship between MetadataDatabase and MetadataDatabaseIndex (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 11981c8c4b06ee3a8af0ed108eb5684b81529bad..c14cc3cab945e6e8ded8dce1c1ad86a937bc99d1 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
@@ -118,7 +118,12 @@ class MetadataDatabaseIndex {
// Promotes all demoted dirty trackers to normal dirty trackers.
void PromoteDemotedDirtyTrackers();
+ size_t CountDirtyTracker() const;
+ size_t CountFileMetadata() const;
+ size_t CountFileTracker() const;
std::vector<std::string> GetRegisteredAppIDs() const;
+ std::vector<int64> GetAllTrackerIDs() const;
+ std::vector<std::string> GetAllMetadataIDs() const;
private:
typedef base::ScopedPtrHashMap<std::string, FileMetadata> MetadataByID;
@@ -131,7 +136,6 @@ class MetadataDatabaseIndex {
typedef base::hash_set<ParentIDAndTitle> PathSet;
typedef std::set<int64> DirtyTrackers;
- friend class MetadataDatabase;
friend class MetadataDatabaseTest;
// Maintains |app_root_by_app_id_|.

Powered by Google App Engine
This is Rietveld 408576698