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

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

Issue 10948045: introduce chrome/browser/common directory and move url_database(and its dependencies) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/logging.h" 12 #include "base/logging.h"
13 #include "base/string_number_conversions.h" 13 #include "base/string_number_conversions.h"
14 #include "chrome/browser/history/url_database.h" 14 #include "chrome/browser/common/url_database/url_database.h"
15 #include "chrome/browser/history/visit_filter.h" 15 #include "chrome/browser/history/visit_filter.h"
16 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
17 #include "content/public/common/page_transition_types.h" 17 #include "content/public/common/page_transition_types.h"
18 #include "sql/statement.h" 18 #include "sql/statement.h"
19 19
20 // Rows, in order, of the visit table. 20 // Rows, in order, of the visit table.
21 #define HISTORY_VISIT_ROW_FIELDS \ 21 #define HISTORY_VISIT_ROW_FIELDS \
22 " id,url,visit_time,from_visit,transition,segment_id,is_indexed," \ 22 " id,url,visit_time,from_visit,transition,segment_id,is_indexed," \
23 "visit_duration " 23 "visit_duration "
24 24
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 while (statement.Step()) { 585 while (statement.Step()) {
586 BriefVisitInfo info; 586 BriefVisitInfo info;
587 info.url_id = statement.ColumnInt64(0); 587 info.url_id = statement.ColumnInt64(0);
588 info.time = base::Time::FromInternalValue(statement.ColumnInt64(1)); 588 info.time = base::Time::FromInternalValue(statement.ColumnInt64(1));
589 info.transition = content::PageTransitionFromInt(statement.ColumnInt(2)); 589 info.transition = content::PageTransitionFromInt(statement.ColumnInt(2));
590 result_vector->push_back(info); 590 result_vector->push_back(info);
591 } 591 }
592 } 592 }
593 593
594 } // namespace history 594 } // 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