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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_IN TERFACE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_IN TERFACE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_IN TERFACE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX_IN TERFACE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 virtual bool HasDemotedDirtyTracker() const = 0; 100 virtual bool HasDemotedDirtyTracker() const = 0;
101 101
102 // Promotes all demoted dirty trackers to normal dirty trackers. 102 // Promotes all demoted dirty trackers to normal dirty trackers.
103 virtual void PromoteDemotedDirtyTrackers(leveldb::WriteBatch* batch) = 0; 103 virtual void PromoteDemotedDirtyTrackers(leveldb::WriteBatch* batch) = 0;
104 104
105 virtual size_t CountDirtyTracker() const = 0; 105 virtual size_t CountDirtyTracker() const = 0;
106 virtual size_t CountFileMetadata() const = 0; 106 virtual size_t CountFileMetadata() const = 0;
107 virtual size_t CountFileTracker() const = 0; 107 virtual size_t CountFileTracker() const = 0;
108 108
109 virtual void SetSyncRootTrackerID(int64 sync_root_id,
110 leveldb::WriteBatch* batch) const = 0;
111 virtual void SetLargestChangeID(int64 largest_change_id,
112 leveldb::WriteBatch* batch) const = 0;
113 virtual void SetNextTrackerID(int64 next_tracker_id,
114 leveldb::WriteBatch* batch) const = 0;
115 virtual int64 GetSyncRootTrackerID() const = 0;
116 virtual int64 GetLargestChangeID() const = 0;
117 virtual int64 GetNextTrackerID() const = 0;
109 virtual std::vector<std::string> GetRegisteredAppIDs() const = 0; 118 virtual std::vector<std::string> GetRegisteredAppIDs() const = 0;
110 virtual std::vector<int64> GetAllTrackerIDs() const = 0; 119 virtual std::vector<int64> GetAllTrackerIDs() const = 0;
111 virtual std::vector<std::string> GetAllMetadataIDs() const = 0; 120 virtual std::vector<std::string> GetAllMetadataIDs() const = 0;
112 121
113 private: 122 private:
114 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexInterface); 123 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexInterface);
115 }; 124 };
116 125
117 } // namespace drive_backend 126 } // namespace drive_backend
118 } // namespace sync_file_system 127 } // namespace sync_file_system
119 128
120 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX _INTERFACE_H_ 129 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX _INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698