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 SYNC_SYNCABLE_DIRECTORY_H_ | 5 #ifndef SYNC_SYNCABLE_DIRECTORY_H_ |
6 #define SYNC_SYNCABLE_DIRECTORY_H_ | 6 #define SYNC_SYNCABLE_DIRECTORY_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 ModelType type, | 320 ModelType type, |
321 Metahandles* result); | 321 Metahandles* result); |
322 | 322 |
323 // Get metahandle counts for various criteria to show on the | 323 // Get metahandle counts for various criteria to show on the |
324 // about:sync page. The information is computed on the fly | 324 // about:sync page. The information is computed on the fly |
325 // each time. If this results in a significant performance hit, | 325 // each time. If this results in a significant performance hit, |
326 // additional data structures can be added to cache results. | 326 // additional data structures can be added to cache results. |
327 void CollectMetaHandleCounts(std::vector<int>* num_entries_by_type, | 327 void CollectMetaHandleCounts(std::vector<int>* num_entries_by_type, |
328 std::vector<int>* num_to_delete_entries_by_type); | 328 std::vector<int>* num_to_delete_entries_by_type); |
329 | 329 |
330 scoped_ptr<base::ListValue> GetAllNodeDetails(BaseTransaction* trans); | 330 // Returns a ListValue serialization of all nodes for the given type. |
331 scoped_ptr<base::ListValue> GetNodeDetailsForType( | |
Nicolas Zea
2014/04/04 23:01:27
Coupled with the comment about having the Director
| |
332 BaseTransaction* trans, | |
333 ModelType type); | |
331 | 334 |
332 // Sets the level of invariant checking performed after transactions. | 335 // Sets the level of invariant checking performed after transactions. |
333 void SetInvariantCheckLevel(InvariantCheckLevel check_level); | 336 void SetInvariantCheckLevel(InvariantCheckLevel check_level); |
334 | 337 |
335 // Checks tree metadata consistency following a transaction. It is intended | 338 // Checks tree metadata consistency following a transaction. It is intended |
336 // to provide a reasonable tradeoff between performance and comprehensiveness | 339 // to provide a reasonable tradeoff between performance and comprehensiveness |
337 // and may be used in release code. | 340 // and may be used in release code. |
338 bool CheckInvariantsOnTransactionClose( | 341 bool CheckInvariantsOnTransactionClose( |
339 syncable::BaseTransaction* trans, | 342 syncable::BaseTransaction* trans, |
340 const MetahandleSet& modified_handles); | 343 const MetahandleSet& modified_handles); |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
546 // are deleted in native models as well. | 549 // are deleted in native models as well. |
547 scoped_ptr<DeleteJournal> delete_journal_; | 550 scoped_ptr<DeleteJournal> delete_journal_; |
548 | 551 |
549 DISALLOW_COPY_AND_ASSIGN(Directory); | 552 DISALLOW_COPY_AND_ASSIGN(Directory); |
550 }; | 553 }; |
551 | 554 |
552 } // namespace syncable | 555 } // namespace syncable |
553 } // namespace syncer | 556 } // namespace syncer |
554 | 557 |
555 #endif // SYNC_SYNCABLE_DIRECTORY_H_ | 558 #endif // SYNC_SYNCABLE_DIRECTORY_H_ |
OLD | NEW |