Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / diagnostics / sqlite_diagnostics.h
blob5058ef011e15587d588ca0254b2dca500ed042f7
1 // Copyright (c) 2010 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 CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_
6 #define CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_
8 #include "chrome/browser/diagnostics/diagnostics_test.h"
10 namespace diagnostics {
12 enum SQLiteIntegrityOutcomeCode {
13 DIAG_SQLITE_SUCCESS,
14 DIAG_SQLITE_FILE_NOT_FOUND_OK,
15 DIAG_SQLITE_FILE_NOT_FOUND,
16 DIAG_SQLITE_ERROR_HANDLER_CALLED,
17 DIAG_SQLITE_CANNOT_OPEN_DB,
18 DIAG_SQLITE_DB_LOCKED,
19 DIAG_SQLITE_PRAGMA_FAILED,
20 DIAG_SQLITE_DB_CORRUPTED
23 // Factories for the database integrity tests we run in diagnostic mode.
24 DiagnosticsTest* MakeSqliteAppCacheDbTest();
25 DiagnosticsTest* MakeSqliteArchivedHistoryDbTest();
26 DiagnosticsTest* MakeSqliteCookiesDbTest();
27 DiagnosticsTest* MakeSqliteHistoryDbTest();
28 DiagnosticsTest* MakeSqliteThumbnailsDbTest();
30 #if defined(OS_CHROMEOS)
31 DiagnosticsTest* MakeSqliteNssCertDbTest();
32 DiagnosticsTest* MakeSqliteNssKeyDbTest();
33 #endif // defined(OS_CHROMEOS)
35 DiagnosticsTest* MakeSqliteWebDatabaseTrackerDbTest();
36 DiagnosticsTest* MakeSqliteWebDataDbTest();
38 } // namespace diagnostics
40 #endif // CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_