| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_BACKING_STORE_H_ | 5 #ifndef SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ |
| 6 #define SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ | 6 #define SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 137 |
| 138 // Checks that the references between sync nodes is consistent. | 138 // Checks that the references between sync nodes is consistent. |
| 139 static bool VerifyReferenceIntegrity( | 139 static bool VerifyReferenceIntegrity( |
| 140 const Directory::MetahandlesMap* handles_map); | 140 const Directory::MetahandlesMap* handles_map); |
| 141 | 141 |
| 142 // Migration utilities. | 142 // Migration utilities. |
| 143 bool RefreshColumns(); | 143 bool RefreshColumns(); |
| 144 bool SetVersion(int version); | 144 bool SetVersion(int version); |
| 145 int GetVersion(); | 145 int GetVersion(); |
| 146 | 146 |
| 147 bool GetDatabasePageSize(int* page_size); |
| 148 bool IsSyncBackingDatabase32KEnabled(); |
| 149 bool IncreasePageSizeTo32K(); |
| 150 bool Vacuum(); |
| 151 |
| 147 bool MigrateToSpecifics(const char* old_columns, | 152 bool MigrateToSpecifics(const char* old_columns, |
| 148 const char* specifics_column, | 153 const char* specifics_column, |
| 149 void(*handler_function) ( | 154 void(*handler_function) ( |
| 150 sql::Statement* old_value_query, | 155 sql::Statement* old_value_query, |
| 151 int old_value_column, | 156 int old_value_column, |
| 152 sync_pb::EntitySpecifics* mutable_new_value)); | 157 sync_pb::EntitySpecifics* mutable_new_value)); |
| 153 | 158 |
| 154 // Individual version migrations. | 159 // Individual version migrations. |
| 155 bool MigrateVersion67To68(); | 160 bool MigrateVersion67To68(); |
| 156 bool MigrateVersion68To69(); | 161 bool MigrateVersion68To69(); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 void PrepareSaveEntryStatement(EntryTable table, | 194 void PrepareSaveEntryStatement(EntryTable table, |
| 190 sql::Statement* save_statement); | 195 sql::Statement* save_statement); |
| 191 | 196 |
| 192 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); | 197 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); |
| 193 }; | 198 }; |
| 194 | 199 |
| 195 } // namespace syncable | 200 } // namespace syncable |
| 196 } // namespace syncer | 201 } // namespace syncer |
| 197 | 202 |
| 198 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ | 203 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ |
| OLD | NEW |