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

Unified Diff: chrome/browser/history/history_types.h

Issue 43054: Stop history search going on beyond the start of history.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/history_types.h
===================================================================
--- chrome/browser/history/history_types.h (revision 11260)
+++ chrome/browser/history/history_types.h (working copy)
@@ -377,6 +377,9 @@
void set_first_time_searched(base::Time t) { first_time_searched_ = t; }
// Note: If you need end_time_searched, it can be added.
+ void set_reached_beginning(bool reached) { reached_beginning_ = reached; }
+ bool reached_beginning() { return reached_beginning_; }
+
size_t size() const { return results_.size(); }
URLResult& operator[](size_t i) { return *results_[i]; }
@@ -431,6 +434,9 @@
base::Time first_time_searched_;
+ // Whether the query reaches the beginning of the database.
+ bool reached_beginning_;
+
// The ordered list of results. The pointers inside this are owned by this
// QueryResults object.
URLResultVector results_;

Powered by Google App Engine
This is Rietveld 408576698