diff options
Diffstat (limited to 'chrome/browser/history/download_database.h')
-rw-r--r-- | chrome/browser/history/download_database.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/chrome/browser/history/download_database.h b/chrome/browser/history/download_database.h index e005de6..1efb6d4 100644 --- a/chrome/browser/history/download_database.h +++ b/chrome/browser/history/download_database.h @@ -1,17 +1,18 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 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 CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H__ -#define CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H__ +#ifndef CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H_ +#define CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H_ #include "chrome/browser/history/history_types.h" -struct sqlite3; -class SqliteStatementCache; -class SQLStatement; struct DownloadCreateInfo; +namespace sql { +class Connection; +} + namespace history { // Maintains a table of downloads. @@ -47,11 +48,8 @@ class DownloadDatabase { const std::wstring& search_text); protected: - // Returns the database and statement cache for the functions in this - // interface. The descendant of this class implements these functions to - // return its objects. - virtual sqlite3* GetDB() = 0; - virtual SqliteStatementCache& GetStatementCache() = 0; + // Returns the database for the functions in this interface. + virtual sql::Connection& GetDB() = 0; // Creates the downloads table if needed. bool InitDownloadTable(); @@ -61,9 +59,9 @@ class DownloadDatabase { bool DropDownloadTable(); private: - DISALLOW_EVIL_CONSTRUCTORS(DownloadDatabase); + DISALLOW_COPY_AND_ASSIGN(DownloadDatabase); }; } // namespace history -#endif // CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H__ +#endif // CHROME_BROWSER_HISTORY_DOWNLOAD_DATABASE_H_ |