OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ |
6 #define CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/sql/connection.h" | |
10 #include "app/sql/init_status.h" | |
11 #include "app/sql/meta_table.h" | |
12 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
13 #include "chrome/browser/history/url_database.h" | 10 #include "chrome/browser/history/url_database.h" |
14 #include "chrome/browser/history/visit_database.h" | 11 #include "chrome/browser/history/visit_database.h" |
| 12 #include "sql/connection.h" |
| 13 #include "sql/init_status.h" |
| 14 #include "sql/meta_table.h" |
15 | 15 |
16 class FilePath; | 16 class FilePath; |
17 | 17 |
18 namespace history { | 18 namespace history { |
19 | 19 |
20 // Encapsulates the database operations for archived history. | 20 // Encapsulates the database operations for archived history. |
21 // | 21 // |
22 // IMPORTANT NOTE: The IDs in this system for URLs and visits will be | 22 // IMPORTANT NOTE: The IDs in this system for URLs and visits will be |
23 // different than those in the main database. This is to eliminate the | 23 // different than those in the main database. This is to eliminate the |
24 // dependency between them so we can deal with each one on its own. | 24 // dependency between them so we can deal with each one on its own. |
(...skipping 30 matching lines...) Expand all Loading... |
55 // The database. | 55 // The database. |
56 sql::Connection db_; | 56 sql::Connection db_; |
57 sql::MetaTable meta_table_; | 57 sql::MetaTable meta_table_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(ArchivedDatabase); | 59 DISALLOW_COPY_AND_ASSIGN(ArchivedDatabase); |
60 }; | 60 }; |
61 | 61 |
62 } // namespace history | 62 } // namespace history |
63 | 63 |
64 #endif // CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ | 64 #endif // CHROME_BROWSER_HISTORY_ARCHIVED_DATABASE_H_ |
OLD | NEW |