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. 4 5 #ifndef CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 6 #define CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 7 #pragma once 8 9 #include "chrome/browser/diagnostics/diagnostics_test.h" 10 11 namespace sql { 12 class ErrorDelegate; 13 } 14 15 // The following five factories create the error handlers that we use when 16 // issuing sqlite commands during normal browser operation. 17 sql::ErrorDelegate* GetErrorHandlerForCookieDb(); 18 sql::ErrorDelegate* GetErrorHandlerForHistoryDb(); 19 sql::ErrorDelegate* GetErrorHandlerForThumbnailDb(); 20 sql::ErrorDelegate* GetErrorHandlerForTextDb(); 21 sql::ErrorDelegate* GetErrorHandlerForWebDb(); 22 23 // Factories for the db integrity tests we run in diagnostic mode. 24 DiagnosticTest* MakeSqliteWebDbTest(); 25 DiagnosticTest* MakeSqliteCookiesDbTest(); 26 DiagnosticTest* MakeSqliteHistoryDbTest(); 27 DiagnosticTest* MakeSqliteArchivedHistoryDbTest(); 28 DiagnosticTest* MakeSqliteThumbnailsDbTest(); 29 DiagnosticTest* MakeSqliteAppCacheDbTest(); 30 DiagnosticTest* MakeSqliteWebDatabaseTrackerDbTest(); 31 32 #endif // CHROME_BROWSER_DIAGNOSTICS_SQLITE_DIAGNOSTICS_H_ 33