OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |