Index: chrome/browser/instant/instant_loader.h |
diff --git a/chrome/browser/instant/instant_loader.h b/chrome/browser/instant/instant_loader.h |
index 3aa5235bd92cf81c9304909f998d496deb39abf1..847842b8916dbc5cc76e666f60263de5174af750 100644 |
--- a/chrome/browser/instant/instant_loader.h |
+++ b/chrome/browser/instant/instant_loader.h |
@@ -69,6 +69,11 @@ class InstantLoader : public NotificationObserver { |
bool ShouldCommitInstantOnMouseUp(); |
void CommitInstantLoader(); |
+ // Preload |template_url|'s instant URL, if the loader doesn't already have |
+ // a |preview_contents()| for it. |
+ void MaybeLoadInstantURL(TabContentsWrapper* tab_contents, |
+ const TemplateURL* template_url); |
+ |
// NotificationObserver: |
virtual void Observe(NotificationType type, |
const NotificationSource& source, |
@@ -153,6 +158,13 @@ class InstantLoader : public NotificationObserver { |
// Creates and sets the preview TabContentsWrapper. |
void CreatePreviewContents(TabContentsWrapper* tab_contents); |
+ // Creates and loads the |template_url|'s instant URL. |
+ void LoadInstantURL(TabContentsWrapper* tab_contents, |
+ const TemplateURL* template_url, |
+ PageTransition::Type transition_type, |
+ const string16& user_text, |
+ bool verbatim); |
+ |
InstantLoaderDelegate* delegate_; |
// If we're showing instant results this is the ID of the TemplateURL driving |