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