| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |