OLD | NEW |
---|---|
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_URL_DATABASE_H__ | 5 #ifndef CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
6 #define CHROME_BROWSER_HISTORY_URL_DATABASE_H__ | 6 #define CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/history/history_types.h" | 9 #include "chrome/browser/history/history_types.h" |
10 #include "chrome/browser/search_engines/template_url.h" | 10 #include "chrome/browser/search_engines/template_url.h" |
11 | 11 |
12 // Temporary until DBCloseScoper moves elsewhere. | 12 // Temporary until DBCloseScoper moves elsewhere. |
13 #include "chrome/common/sqlite_compiled_statement.h" | 13 #include "chrome/common/sqlite_compiled_statement.h" |
14 | 14 |
15 #include "chrome/common/sqlite_utils.h" | |
Dean McNamee
2009/05/28 09:27:18
If this is in the "temporary" category the newline
| |
16 | |
15 class GURL; | 17 class GURL; |
16 struct sqlite3; | 18 struct sqlite3; |
17 class SqliteStatementCache; | 19 class SqliteStatementCache; |
18 | 20 |
19 namespace history { | 21 namespace history { |
20 | 22 |
21 class VisitDatabase; // For friend statement. | 23 class VisitDatabase; // For friend statement. |
22 | 24 |
23 // This class is here temporarily. | 25 // This class is here temporarily. |
24 // TODO(brettw) Figure out a better place for this or obsolete it. | 26 // TODO(brettw) Figure out a better place for this or obsolete it. |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
299 // the macro if you want to put this in the middle of an otherwise constant | 301 // the macro if you want to put this in the middle of an otherwise constant |
300 // string, it will save time doing string appends. If you have to build a SQL | 302 // string, it will save time doing string appends. If you have to build a SQL |
301 // string dynamically anyway, use the constant, it will save space. | 303 // string dynamically anyway, use the constant, it will save space. |
302 #define HISTORY_URL_ROW_FIELDS \ | 304 #define HISTORY_URL_ROW_FIELDS \ |
303 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ | 305 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ |
304 "urls.last_visit_time, urls.hidden, urls.favicon_id " | 306 "urls.last_visit_time, urls.hidden, urls.favicon_id " |
305 | 307 |
306 } // history | 308 } // history |
307 | 309 |
308 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H__ | 310 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
OLD | NEW |