| OLD | NEW |
| 1 // Copyright (c) 2010 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/sql/statement.h" | |
| 10 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 11 #include "chrome/browser/history/history_types.h" | 10 #include "chrome/browser/history/history_types.h" |
| 12 #include "chrome/browser/search_engines/template_url_id.h" | 11 #include "chrome/browser/search_engines/template_url_id.h" |
| 12 #include "sql/statement.h" |
| 13 | 13 |
| 14 class GURL; | 14 class GURL; |
| 15 | 15 |
| 16 namespace sql { | 16 namespace sql { |
| 17 class Connection; | 17 class Connection; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace history { | 20 namespace history { |
| 21 | 21 |
| 22 class VisitDatabase; // For friend statement. | 22 class VisitDatabase; // For friend statement. |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // the macro if you want to put this in the middle of an otherwise constant | 287 // the macro if you want to put this in the middle of an otherwise constant |
| 288 // string, it will save time doing string appends. If you have to build a SQL | 288 // string, it will save time doing string appends. If you have to build a SQL |
| 289 // string dynamically anyway, use the constant, it will save space. | 289 // string dynamically anyway, use the constant, it will save space. |
| 290 #define HISTORY_URL_ROW_FIELDS \ | 290 #define HISTORY_URL_ROW_FIELDS \ |
| 291 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ | 291 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ |
| 292 "urls.last_visit_time, urls.hidden " | 292 "urls.last_visit_time, urls.hidden " |
| 293 | 293 |
| 294 } // history | 294 } // history |
| 295 | 295 |
| 296 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H_ | 296 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H_ |
| OLD | NEW |