summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_contents_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.cc')
-rw-r--r--chrome/browser/autocomplete/history_contents_provider.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.cc b/chrome/browser/autocomplete/history_contents_provider.cc
index da748d7..911f429 100644
--- a/chrome/browser/autocomplete/history_contents_provider.cc
+++ b/chrome/browser/autocomplete/history_contents_provider.cc
@@ -50,6 +50,18 @@ bool CompareMatchRelevance(const MatchReference& a, const MatchReference& b) {
using history::HistoryDatabase;
+HistoryContentsProvider::HistoryContentsProvider(ACProviderListener* listener,
+ Profile* profile)
+ : AutocompleteProvider(listener, profile, "HistoryContents"),
+ star_title_count_(0),
+ star_contents_count_(0),
+ title_count_(0),
+ contents_count_(0),
+ input_type_(AutocompleteInput::INVALID),
+ trim_http_(false),
+ have_results_(false) {
+}
+
void HistoryContentsProvider::Start(const AutocompleteInput& input,
bool minimal_changes) {
matches_.clear();
@@ -138,6 +150,9 @@ void HistoryContentsProvider::Stop() {
have_results_ = false;
}
+HistoryContentsProvider::~HistoryContentsProvider() {
+}
+
void HistoryContentsProvider::QueryComplete(HistoryService::Handle handle,
history::QueryResults* results) {
results_.AppendResultsBySwapping(results, true);