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

Side by Side Diff: sql/init_status.h

Issue 2225333003: Recreate the WebData database on a catastrophic SQL error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo Created 4 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
« no previous file with comments | « components/webdata/common/web_database_service.cc ('k') | no next file » | 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) 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 SQL_INIT_STATUS_H_ 5 #ifndef SQL_INIT_STATUS_H_
6 #define SQL_INIT_STATUS_H_ 6 #define SQL_INIT_STATUS_H_
7 7
8 namespace sql { 8 namespace sql {
9 9
10 // Used as the return value for some databases' init functions. 10 // Used as the return value for some databases' init functions.
11 enum InitStatus { 11 enum InitStatus {
12 INIT_OK, 12 INIT_OK,
13 13
14 // Some error, usually I/O related opening the file. 14 // Some error, usually I/O related opening the file.
15 INIT_FAILURE, 15 INIT_FAILURE,
16 16
17 // The database is from a future version of the app and cannot be read. 17 // The database is from a future version of the app and cannot be read.
18 INIT_TOO_NEW, 18 INIT_TOO_NEW,
19
20 // The database was deleted and re-opened successfully.
21 INIT_OK_WITH_DATA_LOSS,
19 }; 22 };
20 23
21 } // namespace sql 24 } // namespace sql
22 25
23 #endif // SQL_INIT_STATUS_H_ 26 #endif // SQL_INIT_STATUS_H_
OLDNEW
« no previous file with comments | « components/webdata/common/web_database_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698