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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual ParentIDAndTitle PickMultiBackingFilePath() const = 0; | 82 virtual ParentIDAndTitle PickMultiBackingFilePath() const = 0; |
83 | 83 |
84 // Returns a FileTracker whose |dirty| is set and which isn't demoted. | 84 // Returns a FileTracker whose |dirty| is set and which isn't demoted. |
85 // Returns 0 if not found. | 85 // Returns 0 if not found. |
86 virtual int64 PickDirtyTracker() const = 0; | 86 virtual int64 PickDirtyTracker() const = 0; |
87 | 87 |
88 // Demotes a dirty tracker. | 88 // Demotes a dirty tracker. |
89 virtual void DemoteDirtyTracker(int64 tracker_id) = 0; | 89 virtual void DemoteDirtyTracker(int64 tracker_id) = 0; |
90 | 90 |
91 virtual bool HasDemotedDirtyTracker() const = 0; | 91 virtual bool HasDemotedDirtyTracker() const = 0; |
| 92 virtual bool IsDemotedDirtyTracker(int64 tracker_id) const = 0; |
92 | 93 |
93 // Promotes single demoted dirty tracker to a normal dirty tracker. | 94 // Promotes single demoted dirty tracker to a normal dirty tracker. |
94 virtual void PromoteDemotedDirtyTracker(int64 tracker_id) = 0; | 95 virtual void PromoteDemotedDirtyTracker(int64 tracker_id) = 0; |
95 | 96 |
96 // Promotes all demoted dirty trackers to normal dirty trackers. | 97 // Promotes all demoted dirty trackers to normal dirty trackers. |
97 // Returns true if any tracker was promoted. | 98 // Returns true if any tracker was promoted. |
98 virtual bool PromoteDemotedDirtyTrackers() = 0; | 99 virtual bool PromoteDemotedDirtyTrackers() = 0; |
99 | 100 |
100 virtual size_t CountDirtyTracker() const = 0; | 101 virtual size_t CountDirtyTracker() const = 0; |
101 virtual size_t CountFileMetadata() const = 0; | 102 virtual size_t CountFileMetadata() const = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
112 virtual std::vector<std::string> GetAllMetadataIDs() const = 0; | 113 virtual std::vector<std::string> GetAllMetadataIDs() const = 0; |
113 | 114 |
114 private: | 115 private: |
115 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexInterface); | 116 DISALLOW_COPY_AND_ASSIGN(MetadataDatabaseIndexInterface); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace drive_backend | 119 } // namespace drive_backend |
119 } // namespace sync_file_system | 120 } // namespace sync_file_system |
120 | 121 |
121 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX
_INTERFACE_H_ | 122 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_INDEX
_INTERFACE_H_ |
OLD | NEW |