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

Side by Side Diff: chrome/browser/history/visit_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
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/visit_database.h" 5 #include "chrome/browser/history/visit_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 11
12 #include "app/sql/statement.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
14 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
15 #include "chrome/browser/history/url_database.h" 14 #include "chrome/browser/history/url_database.h"
16 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
17 #include "content/common/page_transition_types.h" 16 #include "content/common/page_transition_types.h"
17 #include "sql/statement.h"
18 18
19 // Rows, in order, of the visit table. 19 // Rows, in order, of the visit table.
20 #define HISTORY_VISIT_ROW_FIELDS \ 20 #define HISTORY_VISIT_ROW_FIELDS \
21 " id,url,visit_time,from_visit,transition,segment_id,is_indexed " 21 " id,url,visit_time,from_visit,transition,segment_id,is_indexed "
22 22
23 namespace history { 23 namespace history {
24 24
25 VisitDatabase::VisitDatabase() { 25 VisitDatabase::VisitDatabase() {
26 } 26 }
27 27
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // Get the source entries out of the query result. 523 // Get the source entries out of the query result.
524 while (statement.Step()) { 524 while (statement.Step()) {
525 std::pair<VisitID, VisitSource> source_entry(statement.ColumnInt64(0), 525 std::pair<VisitID, VisitSource> source_entry(statement.ColumnInt64(0),
526 static_cast<VisitSource>(statement.ColumnInt(1))); 526 static_cast<VisitSource>(statement.ColumnInt(1)));
527 sources->insert(source_entry); 527 sources->insert(source_entry);
528 } 528 }
529 } 529 }
530 } 530 }
531 531
532 } // namespace history 532 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/url_database_unittest.cc ('k') | chrome/browser/history/visit_database_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698