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

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

Issue 12001002: InstantExtended: Transient naventry for preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 years, 11 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/instant/instant_loader.h
diff --git a/chrome/browser/instant/instant_loader.h b/chrome/browser/instant/instant_loader.h
index 185d2ff53e9317c3b7838c66ac3adf826f2e5c61..56a7631c295a7121e3479197277c7d55c1ab2df3 100644
--- a/chrome/browser/instant/instant_loader.h
+++ b/chrome/browser/instant/instant_loader.h
@@ -28,6 +28,7 @@ struct Mode;
}
namespace content {
+class NavigationEntry;
class WebContents;
}
@@ -90,6 +91,10 @@ class InstantLoader : public InstantClient::Delegate,
// InstantController::kLocalOmniboxPopupURL as the |instant_url_|.
bool IsUsingLocalPreview() const;
+ const content::NavigationEntry* base_navigation_entry() const {
+ return base_navigation_entry_.get();
+ }
+
// Calls through to methods of the same name on InstantClient.
void Update(const string16& text,
size_t selection_start,
@@ -142,6 +147,7 @@ class InstantLoader : public InstantClient::Delegate,
// on the preview and it needs to be activated.
scoped_ptr<WebContentsDelegateImpl> delegate_;
scoped_ptr<content::WebContents> contents_;
+ scoped_ptr<const content::NavigationEntry> base_navigation_entry_;
const std::string instant_url_;
bool supports_instant_;

Powered by Google App Engine
This is Rietveld 408576698