summaryrefslogtreecommitdiffstats
path: root/chromium/sync/syncable/dir_open_result.h
blob: 0df3c6ca1195518767f91fe10bcda07ed2c79bbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SYNC_SYNCABLE_DIR_OPEN_RESULT_H_
#define SYNC_SYNCABLE_DIR_OPEN_RESULT_H_

namespace syncer {
namespace syncable {
enum DirOpenResult { NOT_INITIALIZED,
                     OPENED,   // success.
                     FAILED_NEWER_VERSION,  // DB version is too new.
                     FAILED_MAKE_REPOSITORY,  // Couldn't create subdir.
                     FAILED_OPEN_DATABASE,  // sqlite_open() failed.
                     FAILED_DISK_FULL,  // The disk is full.
                     FAILED_DATABASE_CORRUPT,  // Something is wrong with the DB
                     FAILED_LOGICAL_CORRUPTION, // Invalid database contents
                     FAILED_IN_UNITTEST, // For tests.
                     FAILED_INITIAL_WRITE,  // Early write to DB failed.
};
}  // namespace syncable
}  // namespace syncer

#endif  // SYNC_SYNCABLE_DIR_OPEN_RESULT_H_