Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: chrome/browser/sync/syncable/directory_backing_store.h

Issue 8770032: [Sync] Implement encryption-aware conflict resolution. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 5 #ifndef CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
6 #define CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 6 #define CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion67To68); 78 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion67To68);
79 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion68To69); 79 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion68To69);
80 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion69To70); 80 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion69To70);
81 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion70To71); 81 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion70To71);
82 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion71To72); 82 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion71To72);
83 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion72To73); 83 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion72To73);
84 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion73To74); 84 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion73To74);
85 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion74To75); 85 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion74To75);
86 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion75To76); 86 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion75To76);
87 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion76To77); 87 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion76To77);
88 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, MigrateVersion77To78);
88 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, ModelTypeIds); 89 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, ModelTypeIds);
89 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, Corruption); 90 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, Corruption);
90 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries); 91 FRIEND_TEST_ALL_PREFIXES(DirectoryBackingStoreTest, DeleteEntries);
91 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion); 92 FRIEND_TEST_ALL_PREFIXES(MigrationTest, ToCurrentVersion);
92 friend class MigrationTest; 93 friend class MigrationTest;
93 94
94 // General Directory initialization and load helpers. 95 // General Directory initialization and load helpers.
95 DirOpenResult InitializeTables(); 96 DirOpenResult InitializeTables();
96 // Returns an sqlite return code, usually SQLITE_DONE. 97 // Returns an sqlite return code, usually SQLITE_DONE.
97 int CreateTables(); 98 int CreateTables();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 bool MigrateVersion67To68(); 177 bool MigrateVersion67To68();
177 bool MigrateVersion68To69(); 178 bool MigrateVersion68To69();
178 bool MigrateVersion69To70(); 179 bool MigrateVersion69To70();
179 bool MigrateVersion70To71(); 180 bool MigrateVersion70To71();
180 bool MigrateVersion71To72(); 181 bool MigrateVersion71To72();
181 bool MigrateVersion72To73(); 182 bool MigrateVersion72To73();
182 bool MigrateVersion73To74(); 183 bool MigrateVersion73To74();
183 bool MigrateVersion74To75(); 184 bool MigrateVersion74To75();
184 bool MigrateVersion75To76(); 185 bool MigrateVersion75To76();
185 bool MigrateVersion76To77(); 186 bool MigrateVersion76To77();
187 bool MigrateVersion77To78();
186 188
187 // The handle to our sqlite on-disk store for initialization and loading, and 189 // The handle to our sqlite on-disk store for initialization and loading, and
188 // for saving changes periodically via SaveChanges, respectively. 190 // for saving changes periodically via SaveChanges, respectively.
189 // TODO(timsteele): We should only have one handle here. The reason we need 191 // TODO(timsteele): We should only have one handle here. The reason we need
190 // two at the moment is because the DB can be opened by either the AuthWatcher 192 // two at the moment is because the DB can be opened by either the AuthWatcher
191 // or SyncCore threads, but SaveChanges is always called by the latter. We 193 // or SyncCore threads, but SaveChanges is always called by the latter. We
192 // need to change initialization so the DB is only accessed from one thread. 194 // need to change initialization so the DB is only accessed from one thread.
193 sqlite3* load_dbhandle_; 195 sqlite3* load_dbhandle_;
194 sqlite3* save_dbhandle_; 196 sqlite3* save_dbhandle_;
195 197
196 std::string dir_name_; 198 std::string dir_name_;
197 FilePath backing_filepath_; 199 FilePath backing_filepath_;
198 200
199 // Set to true if migration left some old columns around that need to be 201 // Set to true if migration left some old columns around that need to be
200 // discarded. 202 // discarded.
201 bool needs_column_refresh_; 203 bool needs_column_refresh_;
202 204
203 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore); 205 DISALLOW_COPY_AND_ASSIGN(DirectoryBackingStore);
204 }; 206 };
205 207
206 } // namespace syncable 208 } // namespace syncable
207 209
208 #endif // CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_ 210 #endif // CHROME_BROWSER_SYNC_SYNCABLE_DIRECTORY_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_util.cc ('k') | chrome/browser/sync/syncable/directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698