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

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

Issue 113591: Fix Acid3 Test 48: LINKTEST, Chromium side.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Made waiting more bearable. Created 11 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
« no previous file with comments | « chrome/browser/history/redirect_uitest.cc ('k') | chrome/browser/history/visit_database.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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "chrome/browser/history/history_types.h" 8 #include "chrome/browser/history/history_types.h"
9 9
10 struct sqlite3; 10 struct sqlite3;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // unbounded. 57 // unbounded.
58 // 58 //
59 // If |max_results| is non-zero, up to that many results will be returned. If 59 // If |max_results| is non-zero, up to that many results will be returned. If
60 // there are more results than that, the oldest ones will be returned. (This 60 // there are more results than that, the oldest ones will be returned. (This
61 // is used for history expiration.) 61 // is used for history expiration.)
62 // 62 //
63 // The results will be in increasing order of date. 63 // The results will be in increasing order of date.
64 void GetAllVisitsInRange(base::Time begin_time, base::Time end_time, 64 void GetAllVisitsInRange(base::Time begin_time, base::Time end_time,
65 int max_results, VisitVector* visits); 65 int max_results, VisitVector* visits);
66 66
67 // Fills all visits with specified transition in the time range [begin, end)
68 // to the given vector. Either time can be is_null(), in which case the times
69 // in that direction are unbounded.
70 //
71 // If |max_results| is non-zero, up to that many results will be returned. If
72 // there are more results than that, the oldest ones will be returned. (This
73 // is used for history expiration.)
74 //
75 // The results will be in increasing order of date.
76 void GetVisitsInRangeForTransition(base::Time begin_time,
77 base::Time end_time,
78 int max_results,
79 PageTransition::Type transition,
80 VisitVector* visits);
81
67 // Fills all visits in the given time range into the given vector that should 82 // Fills all visits in the given time range into the given vector that should
68 // be user-visible, which excludes things like redirects and subframes. The 83 // be user-visible, which excludes things like redirects and subframes. The
69 // begin time is inclusive, the end time is exclusive. Either time can be 84 // begin time is inclusive, the end time is exclusive. Either time can be
70 // is_null(), in which case the times in that direction are unbounded. 85 // is_null(), in which case the times in that direction are unbounded.
71 // 86 //
72 // Up to |max_count| visits will be returned. If there are more visits than 87 // Up to |max_count| visits will be returned. If there are more visits than
73 // that, the most recent |max_count| will be returned. If 0, all visits in the 88 // that, the most recent |max_count| will be returned. If 0, all visits in the
74 // range will be computed. 89 // range will be computed.
75 // 90 //
76 // When |most_recent_visit_only| is set, only one visit for each URL will be 91 // When |most_recent_visit_only| is set, only one visit for each URL will be
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // hasn't happened yet. 162 // hasn't happened yet.
148 static void FillVisitVector(SQLStatement& statement, VisitVector* visits); 163 static void FillVisitVector(SQLStatement& statement, VisitVector* visits);
149 164
150 private: 165 private:
151 DISALLOW_EVIL_CONSTRUCTORS(VisitDatabase); 166 DISALLOW_EVIL_CONSTRUCTORS(VisitDatabase);
152 }; 167 };
153 168
154 } // history 169 } // history
155 170
156 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H__ 171 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H__
OLDNEW
« no previous file with comments | « chrome/browser/history/redirect_uitest.cc ('k') | chrome/browser/history/visit_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698