Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(325)

Side by Side Diff: chrome/browser/history/url_database.cc

Issue 2819063: Cleanup: Remove unneeded headers from app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: forward declare Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/text_database.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "app/l10n_util.h" 12 #include "app/l10n_util.h"
13 #include "app/sql/connection.h"
14 #include "app/sql/statement.h" 13 #include "app/sql/statement.h"
15 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
18 17
19 namespace history { 18 namespace history {
20 19
21 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS; 20 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS;
22 const int URLDatabase::kNumURLRowFields = 9; 21 const int URLDatabase::kNumURLRowFields = 9;
23 22
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 // this likely already exists (and the same below). 488 // this likely already exists (and the same below).
490 GetDB().Execute("CREATE INDEX urls_url_index ON urls (url)"); 489 GetDB().Execute("CREATE INDEX urls_url_index ON urls (url)");
491 } 490 }
492 491
493 void URLDatabase::CreateSupplimentaryURLIndices() { 492 void URLDatabase::CreateSupplimentaryURLIndices() {
494 // Add a favicon index. This is useful when we delete urls. 493 // Add a favicon index. This is useful when we delete urls.
495 GetDB().Execute("CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)"); 494 GetDB().Execute("CREATE INDEX urls_favicon_id_INDEX ON urls (favicon_id)");
496 } 495 }
497 496
498 } // namespace history 497 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/text_database.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698