| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 bool MigrateVersion78To79(); | 166 bool MigrateVersion78To79(); |
| 167 bool MigrateVersion79To80(); | 167 bool MigrateVersion79To80(); |
| 168 bool MigrateVersion80To81(); | 168 bool MigrateVersion80To81(); |
| 169 bool MigrateVersion81To82(); | 169 bool MigrateVersion81To82(); |
| 170 bool MigrateVersion82To83(); | 170 bool MigrateVersion82To83(); |
| 171 bool MigrateVersion83To84(); | 171 bool MigrateVersion83To84(); |
| 172 bool MigrateVersion84To85(); | 172 bool MigrateVersion84To85(); |
| 173 bool MigrateVersion85To86(); | 173 bool MigrateVersion85To86(); |
| 174 bool MigrateVersion86To87(); | 174 bool MigrateVersion86To87(); |
| 175 bool MigrateVersion87To88(); | 175 bool MigrateVersion87To88(); |
| 176 bool MigrateVersion88To89(); |
| 176 | 177 |
| 177 scoped_ptr<sql::Connection> db_; | 178 scoped_ptr<sql::Connection> db_; |
| 178 sql::Statement save_meta_statment_; | 179 sql::Statement save_meta_statment_; |
| 179 sql::Statement save_delete_journal_statment_; | 180 sql::Statement save_delete_journal_statment_; |
| 180 std::string dir_name_; | 181 std::string dir_name_; |
| 181 | 182 |
| 182 // Set to true if migration left some old columns around that need to be | 183 // Set to true if migration left some old columns around that need to be |
| 183 // discarded. | 184 // discarded. |
| 184 bool needs_column_refresh_; | 185 bool needs_column_refresh_; |
| 185 | 186 |
| 186 private: | 187 private: |
| 187 // Prepares |save_statement| for saving entries in |table|. | 188 // Prepares |save_statement| for saving entries in |table|. |
| 188 void PrepareSaveEntryStatement(EntryTable table, | 189 void PrepareSaveEntryStatement(EntryTable table, |
| 189 sql::Statement* save_statement); | 190 sql::Statement* save_statement); |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); | 192 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace syncable | 195 } // namespace syncable |
| 195 } // namespace syncer | 196 } // namespace syncer |
| 196 | 197 |
| 197 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ | 198 #endif // SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ |
| OLD | NEW |