| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/history/history_types.h" | 9 #include "chrome/browser/history/history_types.h" |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 // in that direction are unbounded. | 77 // in that direction are unbounded. |
| 78 // | 78 // |
| 79 // If |max_results| is non-zero, up to that many results will be returned. If | 79 // If |max_results| is non-zero, up to that many results will be returned. If |
| 80 // there are more results than that, the oldest ones will be returned. (This | 80 // there are more results than that, the oldest ones will be returned. (This |
| 81 // is used for history expiration.) | 81 // is used for history expiration.) |
| 82 // | 82 // |
| 83 // The results will be in increasing order of date. | 83 // The results will be in increasing order of date. |
| 84 void GetVisitsInRangeForTransition(base::Time begin_time, | 84 void GetVisitsInRangeForTransition(base::Time begin_time, |
| 85 base::Time end_time, | 85 base::Time end_time, |
| 86 int max_results, | 86 int max_results, |
| 87 PageTransition::Type transition, | 87 content::PageTransition transition, |
| 88 VisitVector* visits); | 88 VisitVector* visits); |
| 89 | 89 |
| 90 // Fills all visits in the given time range into the given vector that should | 90 // Fills all visits in the given time range into the given vector that should |
| 91 // be user-visible, which excludes things like redirects and subframes. The | 91 // be user-visible, which excludes things like redirects and subframes. The |
| 92 // begin time is inclusive, the end time is exclusive. Either time can be | 92 // begin time is inclusive, the end time is exclusive. Either time can be |
| 93 // is_null(), in which case the times in that direction are unbounded. | 93 // is_null(), in which case the times in that direction are unbounded. |
| 94 // | 94 // |
| 95 // Up to |max_count| visits will be returned. If there are more visits than | 95 // Up to |max_count| visits will be returned. If there are more visits than |
| 96 // that, the most recent |max_count| will be returned. If 0, all visits in the | 96 // that, the most recent |max_count| will be returned. If 0, all visits in the |
| 97 // range will be computed. | 97 // range will be computed. |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 // hasn't happened yet. | 172 // hasn't happened yet. |
| 173 static void FillVisitVector(sql::Statement& statement, VisitVector* visits); | 173 static void FillVisitVector(sql::Statement& statement, VisitVector* visits); |
| 174 | 174 |
| 175 private: | 175 private: |
| 176 DISALLOW_COPY_AND_ASSIGN(VisitDatabase); | 176 DISALLOW_COPY_AND_ASSIGN(VisitDatabase); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 } // history | 179 } // history |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ | 181 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| OLD | NEW |