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

Unified Diff: chrome/browser/predictors/autocomplete_action_predictor.h

Issue 10553029: Handle interface to prerenders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/predictors/autocomplete_action_predictor.h
diff --git a/chrome/browser/predictors/autocomplete_action_predictor.h b/chrome/browser/predictors/autocomplete_action_predictor.h
index 3477241fece9baf1bc41241bdfa9f4ef3af0977e..0e73933289cee276e156230fd77651df26fd597e 100644
--- a/chrome/browser/predictors/autocomplete_action_predictor.h
+++ b/chrome/browser/predictors/autocomplete_action_predictor.h
@@ -14,6 +14,7 @@
#include "base/string16.h"
#include "chrome/browser/history/history_types.h"
#include "chrome/browser/predictors/autocomplete_action_predictor_table.h"
+#include "chrome/browser/prerender/prerender_handle.h"
#include "chrome/browser/profiles/profile_keyed_service.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -26,6 +27,10 @@ class HistoryService;
class PredictorsHandler;
class Profile;
+namespace content {
+class SessionStorageNamespace;
+}
+
namespace history {
class URLDatabase;
}
@@ -79,6 +84,10 @@ class AutocompleteActionPredictor
Action RecommendAction(const string16& user_text,
const AutocompleteMatch& match) const;
+ prerender::PrerenderHandle StartPrerendering(
+ const GURL& url,
+ content::SessionStorageNamespace* session_storage_namespace);
+
// Return true if the suggestion type warrants a TCP/IP preconnection.
// i.e., it is now quite likely that the user will select the related domain.
static bool IsPreconnectable(const AutocompleteMatch& match);
@@ -199,6 +208,8 @@ class AutocompleteActionPredictor
// This is cleared after every Omnibox navigation.
std::vector<TransitionalMatch> transitional_matches_;
+ prerender::PrerenderHandle prerender_;
+
// This allows us to predict the effect of confidence threshold changes on
// accuracy. This is cleared after every omnibox navigation.
mutable std::vector<std::pair<GURL, double> > tracked_urls_;

Powered by Google App Engine
This is Rietveld 408576698