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

Side by Side Diff: sync/syncable/on_disk_directory_backing_store.h

Issue 1082893003: [Sync] Erase sync DB when corrupted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reduce test runtime by writing fewer bookmarks Created 5 years, 7 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
« no previous file with comments | « sync/syncable/directory_unittest.cc ('k') | sync/syncable/on_disk_directory_backing_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ON_DISK_DIRECTORY_BACKING_STORE_H_ 5 #ifndef SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_
6 #define SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ 6 #define SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "sync/base/sync_export.h" 9 #include "sync/base/sync_export.h"
10 #include "sync/syncable/directory_backing_store.h" 10 #include "sync/syncable/directory_backing_store.h"
(...skipping 22 matching lines...) Expand all
33 const base::FilePath& backing_file_path() const; 33 const base::FilePath& backing_file_path() const;
34 34
35 private: 35 private:
36 // A helper function that will make one attempt to load the directory. 36 // A helper function that will make one attempt to load the directory.
37 // Unlike Load(), it does not attempt to recover from failure. 37 // Unlike Load(), it does not attempt to recover from failure.
38 DirOpenResult TryLoad(Directory::MetahandlesMap* handles_map, 38 DirOpenResult TryLoad(Directory::MetahandlesMap* handles_map,
39 JournalIndex* delete_journals, 39 JournalIndex* delete_journals,
40 MetahandleSet* metahandles_to_purge, 40 MetahandleSet* metahandles_to_purge,
41 Directory::KernelLoadInfo* kernel_load_info); 41 Directory::KernelLoadInfo* kernel_load_info);
42 42
43 bool allow_failure_for_test_; 43 // The path to the sync DB.
44 base::FilePath backing_file_path_; 44 const base::FilePath backing_file_path_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(OnDiskDirectoryBackingStore); 46 DISALLOW_COPY_AND_ASSIGN(OnDiskDirectoryBackingStore);
47 }; 47 };
48 48
49 } // namespace syncable 49 } // namespace syncable
50 } // namespace syncer 50 } // namespace syncer
51 51
52 #endif // SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_ 52 #endif // SYNC_SYNCABLE_ON_DISK_DIRECTORY_BACKING_STORE_H_
OLDNEW
« no previous file with comments | « sync/syncable/directory_unittest.cc ('k') | sync/syncable/on_disk_directory_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698