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

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

Issue 10832329: Update next_id when loading sync DB (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix win compile Created 8 years, 4 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
« no previous file with comments | « no previous file | sync/syncable/directory.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_DIR_OPEN_RESULT_H_ 5 #ifndef SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
6 #define SYNC_SYNCABLE_DIR_OPEN_RESULT_H_ 6 #define SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
7 7
8 namespace syncer { 8 namespace syncer {
9 namespace syncable { 9 namespace syncable {
10 enum DirOpenResult { NOT_INITIALIZED, 10 enum DirOpenResult { NOT_INITIALIZED,
11 OPENED, // success. 11 OPENED, // success.
12 FAILED_NEWER_VERSION, // DB version is too new. 12 FAILED_NEWER_VERSION, // DB version is too new.
13 FAILED_MAKE_REPOSITORY, // Couldn't create subdir. 13 FAILED_MAKE_REPOSITORY, // Couldn't create subdir.
14 FAILED_OPEN_DATABASE, // sqlite_open() failed. 14 FAILED_OPEN_DATABASE, // sqlite_open() failed.
15 FAILED_DISK_FULL, // The disk is full. 15 FAILED_DISK_FULL, // The disk is full.
16 FAILED_DATABASE_CORRUPT, // Something is wrong with the DB 16 FAILED_DATABASE_CORRUPT, // Something is wrong with the DB
17 FAILED_LOGICAL_CORRUPTION, // Invalid database contents 17 FAILED_LOGICAL_CORRUPTION, // Invalid database contents
18 FAILED_IN_UNITTEST, // For tests. 18 FAILED_IN_UNITTEST, // For tests.
19 FAILED_INITIAL_WRITE, // Early write to DB failed.
19 }; 20 };
20 } // namespace syncable 21 } // namespace syncable
21 } // namespace syncer 22 } // namespace syncer
22 23
23 #endif // SYNC_SYNCABLE_DIR_OPEN_RESULT_H_ 24 #endif // SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
OLDNEW
« no previous file with comments | « no previous file | sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698