| Index: chrome/browser/history/history_backend.h
|
| diff --git a/chrome/browser/history/history_backend.h b/chrome/browser/history/history_backend.h
|
| index 2aff6599cf09598c4cc10bebc5b6fbb960bd1304..fb18d6f34b4bb6898c0c8550de95259362f5696f 100644
|
| --- a/chrome/browser/history/history_backend.h
|
| +++ b/chrome/browser/history/history_backend.h
|
| @@ -409,6 +409,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
|
|
|
| virtual bool GetVisitsForURL(URLID id, VisitVector* visits);
|
|
|
| + virtual bool GetVisitsForURLWithOptions(URLID id,
|
| + const QueryOptions& options,
|
| + VisitVector* visits);
|
| +
|
| // Fetches up to |max_visits| most recent visits for the passed URL.
|
| virtual bool GetMostRecentVisitsForURL(URLID id,
|
| int max_visits,
|
| @@ -625,12 +629,18 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
|
|
|
| // Querying ------------------------------------------------------------------
|
|
|
| - // Backends for QueryHistory. *Basic() handles queries that are not FTS (full
|
| - // text search) queries and can just be given directly to the history DB).
|
| - // The FTS version queries the text_database, then merges with the history DB.
|
| + // Backends for QueryHistory. *Basic() handles queries that are not
|
| + // text search queries and can just be given directly to the history DB.
|
| + // The *Text() version performs a brute force query of the history DB to
|
| + // search for results which match the given text query.
|
| // Both functions assume QueryHistory already checked the DB for validity.
|
| void QueryHistoryBasic(URLDatabase* url_db, VisitDatabase* visit_db,
|
| const QueryOptions& options, QueryResults* result);
|
| + void QueryHistoryText(URLDatabase* url_db,
|
| + VisitDatabase* visit_db,
|
| + const string16& text_query,
|
| + const QueryOptions& options,
|
| + QueryResults* result);
|
| void QueryHistoryFTS(const string16& text_query,
|
| const QueryOptions& options,
|
| QueryResults* result);
|
|
|