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

Unified Diff: chrome/browser/autocomplete/search_provider.h

Issue 455563002: Prefetch cache pt1 - MRU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pfq-base
Patch Set: Review fixes. Created 6 years, 4 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/autocomplete/search_provider.h
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h
index 023fd33c9e78ccd4c23de8d15a22294bec8ac30c..0db2ab61e51a4897a5e0e2cb57d4320c8107589f 100644
--- a/chrome/browser/autocomplete/search_provider.h
+++ b/chrome/browser/autocomplete/search_provider.h
@@ -16,6 +16,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
+#include "chrome/browser/autocomplete/answers_cache.h"
#include "chrome/browser/autocomplete/base_search_provider.h"
#include "components/metrics/proto/omnibox_input_type.pb.h"
#include "components/search_engines/template_url.h"
@@ -133,11 +134,6 @@ class SearchProvider : public BaseSearchProvider {
class CompareScoredResults;
- struct AnswersQueryData {
- base::string16 full_query_text;
- base::string16 query_type;
- };
-
typedef std::vector<history::KeywordSearchTermVisit> HistoryResults;
// Removes non-inlineable results until either the top result can inline
@@ -342,8 +338,8 @@ class SearchProvider : public BaseSearchProvider {
base::TimeTicks token_expiration_time_;
// Answers prefetch management.
- AnswersQueryData prefetch_data_; // Data to use for query prefetching.
- AnswersQueryData last_answer_seen_; // Last answer seen.
+ AnswersCache answers_cache_; // Cache for last answers seen.
+ AnswersQueryData prefetch_data_; // Data to use for query prefetching.
DISALLOW_COPY_AND_ASSIGN(SearchProvider);
};

Powered by Google App Engine
This is Rietveld 408576698