| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 void LowerTrackerPriority(int64 tracker_id); | 246 void LowerTrackerPriority(int64 tracker_id); |
| 247 | 247 |
| 248 // Returns true if there is a normal priority dirty tracker. | 248 // Returns true if there is a normal priority dirty tracker. |
| 249 // Assigns the dirty tracker if exists and |tracker| is non-NULL. | 249 // Assigns the dirty tracker if exists and |tracker| is non-NULL. |
| 250 bool GetNormalPriorityDirtyTracker(FileTracker* tracker); | 250 bool GetNormalPriorityDirtyTracker(FileTracker* tracker); |
| 251 | 251 |
| 252 // Returns true if there is a low priority dirty tracker. | 252 // Returns true if there is a low priority dirty tracker. |
| 253 // Assigns the dirty tracker if exists and |tracker| is non-NULL. | 253 // Assigns the dirty tracker if exists and |tracker| is non-NULL. |
| 254 bool GetLowPriorityDirtyTracker(FileTracker* tracker); | 254 bool GetLowPriorityDirtyTracker(FileTracker* tracker); |
| 255 | 255 |
| 256 // Sets |app_ids| to a list of all registered app ids. |
| 257 void GetRegisteredAppIDs(std::vector<std::string>* app_ids); |
| 258 |
| 256 private: | 259 private: |
| 257 friend class ListChangesTaskTest; | 260 friend class ListChangesTaskTest; |
| 258 friend class MetadataDatabaseTest; | 261 friend class MetadataDatabaseTest; |
| 259 friend class RegisterAppTaskTest; | 262 friend class RegisterAppTaskTest; |
| 260 friend class SyncEngineInitializerTest; | 263 friend class SyncEngineInitializerTest; |
| 261 | 264 |
| 262 struct DirtyTrackerComparator { | 265 struct DirtyTrackerComparator { |
| 263 bool operator()(const FileTracker* left, | 266 bool operator()(const FileTracker* left, |
| 264 const FileTracker* right) const; | 267 const FileTracker* right) const; |
| 265 }; | 268 }; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 369 |
| 367 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_; | 370 base::WeakPtrFactory<MetadataDatabase> weak_ptr_factory_; |
| 368 | 371 |
| 369 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase); | 372 DISALLOW_COPY_AND_ASSIGN(MetadataDatabase); |
| 370 }; | 373 }; |
| 371 | 374 |
| 372 } // namespace drive_backend | 375 } // namespace drive_backend |
| 373 } // namespace sync_file_system | 376 } // namespace sync_file_system |
| 374 | 377 |
| 375 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ | 378 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_METADATA_DATABASE_H_ |
| OLD | NEW |