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

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

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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/url_database.h ('k') | chrome/browser/history/url_database_unittest.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) 2011 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 #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/sql/statement.h"
13 #include "base/i18n/case_conversion.h" 12 #include "base/i18n/case_conversion.h"
14 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
15 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
16 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "sql/statement.h"
17 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
18 18
19 namespace history { 19 namespace history {
20 20
21 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS; 21 const char URLDatabase::kURLRowFields[] = HISTORY_URL_ROW_FIELDS;
22 const int URLDatabase::kNumURLRowFields = 9; 22 const int URLDatabase::kNumURLRowFields = 9;
23 23
24 URLDatabase::URLEnumeratorBase::URLEnumeratorBase() 24 URLDatabase::URLEnumeratorBase::URLEnumeratorBase()
25 : initialized_(false) { 25 : initialized_(false) {
26 } 26 }
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 return GetDB().Execute(sql.c_str()); 552 return GetDB().Execute(sql.c_str());
553 } 553 }
554 554
555 void URLDatabase::CreateMainURLIndex() { 555 void URLDatabase::CreateMainURLIndex() {
556 // Index over URLs so we can quickly look up based on URL. Ignore errors as 556 // Index over URLs so we can quickly look up based on URL. Ignore errors as
557 // this likely already exists (and the same below). 557 // this likely already exists (and the same below).
558 GetDB().Execute("CREATE INDEX urls_url_index ON urls (url)"); 558 GetDB().Execute("CREATE INDEX urls_url_index ON urls (url)");
559 } 559 }
560 560
561 } // namespace history 561 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/url_database.h ('k') | chrome/browser/history/url_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698