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

Unified Diff: chrome/browser/instant/instant_loader.h

Issue 6990015: Preload Instant search when omnibox is focused. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebaseline Created 9 years, 7 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
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/instant/instant_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_loader.h
diff --git a/chrome/browser/instant/instant_loader.h b/chrome/browser/instant/instant_loader.h
index 5182e2f21546042fca17a57a8a36976609bd06c5..d28a6d66ad35607c0c6f511626415785772fa5f6 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,
@@ -162,6 +167,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
« no previous file with comments | « chrome/browser/instant/instant_controller.cc ('k') | chrome/browser/instant/instant_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698