| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 friend class syncer::TestUserShare; | 134 friend class syncer::TestUserShare; |
| 135 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, ManageDeleteJournals); | 135 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, ManageDeleteJournals); |
| 136 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, | 136 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, |
| 137 TakeSnapshotGetsAllDirtyHandlesTest); | 137 TakeSnapshotGetsAllDirtyHandlesTest); |
| 138 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, | 138 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, |
| 139 TakeSnapshotGetsOnlyDirtyHandlesTest); | 139 TakeSnapshotGetsOnlyDirtyHandlesTest); |
| 140 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, | 140 FRIEND_TEST_ALL_PREFIXES(SyncableDirectoryTest, |
| 141 TakeSnapshotGetsMetahandlesToPurge); | 141 TakeSnapshotGetsMetahandlesToPurge); |
| 142 | 142 |
| 143 public: | 143 public: |
| 144 static const FilePath::CharType kSyncDatabaseFilename[]; | 144 static const base::FilePath::CharType kSyncDatabaseFilename[]; |
| 145 | 145 |
| 146 // Various data that the Directory::Kernel we are backing (persisting data | 146 // Various data that the Directory::Kernel we are backing (persisting data |
| 147 // for) needs saved across runs of the application. | 147 // for) needs saved across runs of the application. |
| 148 struct SYNC_EXPORT_PRIVATE PersistedKernelInfo { | 148 struct SYNC_EXPORT_PRIVATE PersistedKernelInfo { |
| 149 PersistedKernelInfo(); | 149 PersistedKernelInfo(); |
| 150 ~PersistedKernelInfo(); | 150 ~PersistedKernelInfo(); |
| 151 | 151 |
| 152 // Set the |download_progress| entry for the given model to a | 152 // Set the |download_progress| entry for the given model to a |
| 153 // "first sync" start point. When such a value is sent to the server, | 153 // "first sync" start point. When such a value is sent to the server, |
| 154 // a full download of all objects of the model will be initiated. | 154 // a full download of all objects of the model will be initiated. |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 | 629 |
| 630 // Maintain deleted entries not in |kernel_| until it's verified that they | 630 // Maintain deleted entries not in |kernel_| until it's verified that they |
| 631 // are deleted in native models as well. | 631 // are deleted in native models as well. |
| 632 scoped_ptr<DeleteJournal> delete_journal_; | 632 scoped_ptr<DeleteJournal> delete_journal_; |
| 633 }; | 633 }; |
| 634 | 634 |
| 635 } // namespace syncable | 635 } // namespace syncable |
| 636 } // namespace syncer | 636 } // namespace syncer |
| 637 | 637 |
| 638 #endif // SYNC_SYNCABLE_DIRECTORY_H_ | 638 #endif // SYNC_SYNCABLE_DIRECTORY_H_ |
| OLD | NEW |