Roll src/third_party/WebKit 5dc6c7a:f688398 (svn 201993:201994)
[chromium-blink-merge.git] / sync / syncable / dir_open_result.h
blob0df3c6ca1195518767f91fe10bcda07ed2c79bbe
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
3 // found in the LICENSE file.
5 #ifndef SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
6 #define SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
8 namespace syncer {
9 namespace syncable {
10 enum DirOpenResult { NOT_INITIALIZED,
11 OPENED, // success.
12 FAILED_NEWER_VERSION, // DB version is too new.
13 FAILED_MAKE_REPOSITORY, // Couldn't create subdir.
14 FAILED_OPEN_DATABASE, // sqlite_open() failed.
15 FAILED_DISK_FULL, // The disk is full.
16 FAILED_DATABASE_CORRUPT, // Something is wrong with the DB
17 FAILED_LOGICAL_CORRUPTION, // Invalid database contents
18 FAILED_IN_UNITTEST, // For tests.
19 FAILED_INITIAL_WRITE, // Early write to DB failed.
21 } // namespace syncable
22 } // namespace syncer
24 #endif // SYNC_SYNCABLE_DIR_OPEN_RESULT_H_