Chromium Code Reviews| 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 afbba8354ca71bd138c8fd5d4b3a71a8e2c5abe4..b8b04ba7437dc6abf19bf3e564faf6bb02cb259d 100644 |
| --- a/chrome/browser/predictors/autocomplete_action_predictor.h |
| +++ b/chrome/browser/predictors/autocomplete_action_predictor.h |
| @@ -14,10 +14,12 @@ |
| #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" |
| #include "googleurl/src/gurl.h" |
| +#include "ui/gfx/size.h" |
| struct AutocompleteLog; |
| struct AutocompleteMatch; |
| @@ -26,6 +28,10 @@ class HistoryService; |
| class PredictorsHandler; |
| class Profile; |
| +namespace content { |
| + class SessionStorageNamespace; |
| +} |
| + |
| namespace history { |
| class URLDatabase; |
| } |
| @@ -79,6 +85,11 @@ class AutocompleteActionPredictor |
| Action RecommendAction(const string16& user_text, |
| const AutocompleteMatch& match) const; |
| + void StartPrerendering( |
|
dominich
2012/06/28 00:34:32
this'll need a comment.
|
| + const GURL& url, |
| + content::SessionStorageNamespace* session_storage_namespace, |
| + gfx::Size size); |
| + |
| // 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 +210,8 @@ class AutocompleteActionPredictor |
| // This is cleared after every Omnibox navigation. |
| std::vector<TransitionalMatch> transitional_matches_; |
| + prerender::PrerenderHandle prerender_handle_; |
| + |
| // 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_; |