| 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 #include "chrome/browser/history/url_database.h" | 5 #include "chrome/browser/history/url_database.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" |
| 10 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 11 #include "chrome/common/l10n_util.h" | |
| 12 #include "chrome/common/sqlite_utils.h" | 12 #include "chrome/common/sqlite_utils.h" |
| 13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
| 14 | 14 |
| 15 using base::Time; | 15 using base::Time; |
| 16 | 16 |
| 17 namespace history { | 17 namespace history { |
| 18 | 18 |
| 19 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS; | 19 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS; |
| 20 const int URLDatabase::kNumURLRowFields = 9; | 20 const int URLDatabase::kNumURLRowFields = 9; |
| 21 | 21 |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 } | 474 } |
| 475 | 475 |
| 476 void URLDatabase::CreateSupplimentaryURLIndices() { | 476 void URLDatabase::CreateSupplimentaryURLIndices() { |
| 477 // Add a favicon index. This is useful when we delete urls. | 477 // Add a favicon index. This is useful when we delete urls. |
| 478 sqlite3_exec(GetDB(), | 478 sqlite3_exec(GetDB(), |
| 479 "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)", | 479 "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)", |
| 480 NULL, NULL, NULL); | 480 NULL, NULL, NULL); |
| 481 } | 481 } |
| 482 | 482 |
| 483 } // namespace history | 483 } // namespace history |
| OLD | NEW |