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 "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 | 468 |
469 void URLDatabase::CreateMainURLIndex() { | 469 void URLDatabase::CreateMainURLIndex() { |
470 // Index over URLs so we can quickly look up based on URL. Ignore errors as | 470 // Index over URLs so we can quickly look up based on URL. Ignore errors as |
471 // this likely already exists (and the same below). | 471 // this likely already exists (and the same below). |
472 sqlite3_exec(GetDB(), "CREATE INDEX urls_url_index ON urls (url)", NULL, NULL, | 472 sqlite3_exec(GetDB(), "CREATE INDEX urls_url_index ON urls (url)", NULL, NULL, |
473 NULL); | 473 NULL); |
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(), "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)
", | 478 sqlite3_exec(GetDB(), |
| 479 "CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)", |
479 NULL, NULL, NULL); | 480 NULL, NULL, NULL); |
480 } | 481 } |
481 | 482 |
482 } // namespace history | 483 } // namespace history |
483 | 484 |
OLD | NEW |