Bug 1142171 - Pre: Refactor HistoryAdapter to a separate class and defined section ranges r=sebastian.
This commit is contained in:
@@ -719,6 +719,21 @@ public class LocalBrowserDB implements BrowserDB {
|
||||
History.DATE_LAST_VISITED + " DESC");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cursor getRecentHistoryBetweenTime(ContentResolver cr, int limit, long start, long end) {
|
||||
return cr.query(combinedUriWithLimit(limit),
|
||||
new String[] { Combined._ID,
|
||||
Combined.BOOKMARK_ID,
|
||||
Combined.HISTORY_ID,
|
||||
Combined.URL,
|
||||
Combined.TITLE,
|
||||
Combined.DATE_LAST_VISITED,
|
||||
Combined.VISITS },
|
||||
History.DATE_LAST_VISITED + " >= " + start + " AND " + History.DATE_LAST_VISITED + " < " + end,
|
||||
null,
|
||||
History.DATE_LAST_VISITED + " DESC");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void expireHistory(ContentResolver cr, ExpirePriority priority) {
|
||||
Uri url = mHistoryExpireUriWithProfile;
|
||||
|
||||
Reference in New Issue
Block a user