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

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

Issue 388913005: [SyncFS] Migrate ServiceMetadata from MDDB to MDDBIndex. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work for nits Created 6 years, 5 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_on_disk.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h
index 86259a74067bbf28e80dcfb9a605b312d101afce..8d8c2293fff9e87c66bb0799d71d5c042135481c 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_on_disk.h
@@ -22,6 +22,7 @@ namespace drive_backend {
class FileMetadata;
class FileTracker;
+class ServiceMetadata;
struct DatabaseContents;
// TODO(peria): Migrate implementation of ParentIDAndTitle structure from
// metadata_database_index.{cc,h} to here, on removing the files.
@@ -63,6 +64,15 @@ class MetadataDatabaseIndexOnDisk : public MetadataDatabaseIndexInterface {
virtual size_t CountDirtyTracker() const OVERRIDE;
virtual size_t CountFileMetadata() const OVERRIDE;
virtual size_t CountFileTracker() const OVERRIDE;
+ virtual void SetSyncRootTrackerID(int64 sync_root_id,
+ leveldb::WriteBatch* batch) const OVERRIDE;
+ virtual void SetLargestChangeID(int64 largest_change_id,
+ leveldb::WriteBatch* batch) const OVERRIDE;
+ virtual void SetNextTrackerID(int64 next_tracker_id,
+ leveldb::WriteBatch* batch) const OVERRIDE;
+ virtual int64 GetSyncRootTrackerID() const OVERRIDE;
+ virtual int64 GetLargestChangeID() const OVERRIDE;
+ virtual int64 GetNextTrackerID() const OVERRIDE;
virtual std::vector<std::string> GetRegisteredAppIDs() const OVERRIDE;
virtual std::vector<int64> GetAllTrackerIDs() const OVERRIDE;
virtual std::vector<std::string> GetAllMetadataIDs() const OVERRIDE;
@@ -159,6 +169,7 @@ class MetadataDatabaseIndexOnDisk : public MetadataDatabaseIndexInterface {
NumEntries CountWithPrefix(const std::string& prefix, int64 ignored_id);
leveldb::DB* db_; // Not owned.
+ scoped_ptr<ServiceMetadata> service_metadata_;
DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexOnDisk);
};

Powered by Google App Engine
This is Rietveld 408576698