| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 336 |
| 337 // Changes the priority of the tracker to low. | 337 // Changes the priority of the tracker to low. |
| 338 void LowerTrackerPriority(int64 tracker_id); | 338 void LowerTrackerPriority(int64 tracker_id); |
| 339 void PromoteLowerPriorityTrackersToNormal(); | 339 void PromoteLowerPriorityTrackersToNormal(); |
| 340 | 340 |
| 341 // Returns true if there is a normal priority dirty tracker. | 341 // Returns true if there is a normal priority dirty tracker. |
| 342 // Assigns the dirty tracker if exists and |tracker| is non-NULL. | 342 // Assigns the dirty tracker if exists and |tracker| is non-NULL. |
| 343 bool GetNormalPriorityDirtyTracker(FileTracker* tracker) const; | 343 bool GetNormalPriorityDirtyTracker(FileTracker* tracker) const; |
| 344 | 344 |
| 345 // Returns true if there is a low priority dirty tracker. | 345 // Returns true if there is a low priority dirty tracker. |
| 346 // Assigns the dirty tracker if exists and |tracker| is non-NULL. | 346 bool HasLowPriorityDirtyTracker() const; |
| 347 bool GetLowPriorityDirtyTracker(FileTracker* tracker) const; | |
| 348 | 347 |
| 349 bool HasDirtyTracker() const; | 348 bool HasDirtyTracker() const; |
| 350 size_t CountDirtyTracker() const; | 349 size_t CountDirtyTracker() const; |
| 351 size_t CountFileMetadata() const; | 350 size_t CountFileMetadata() const; |
| 352 size_t CountFileTracker() const; | 351 size_t CountFileTracker() const; |
| 353 | 352 |
| 354 bool GetMultiParentFileTrackers(std::string* file_id, | 353 bool GetMultiParentFileTrackers(std::string* file_id, |
| 355 TrackerIDSet* trackers); | 354 TrackerIDSet* trackers); |
| 356 bool GetConflictingTrackers(TrackerIDSet* trackers); | 355 bool GetConflictingTrackers(TrackerIDSet* trackers); |
| 357 | 356 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 | 508 |
| 510 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_; | 509 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_; |
| 511 | 510 |
| 512 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase); | 511 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase); |
| 513 }; | 512 }; |
| 514 | 513 |
| 515 } // namespace drive_backend | 514 } // namespace drive_backend |
| 516 } // namespace sync_file_system | 515 } // namespace sync_file_system |
| 517 | 516 |
| 518 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ | 517 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ |
| OLD | NEW |