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

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: Rebase. Created 7 years, 10 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 b9f9fa9eba26cf9f6c9d09963cd0137fdaf89e74..e9204813556948739ec0c23a5f531337646c603b 100644
--- a/chrome/browser/instant/instant_loader.h
+++ b/chrome/browser/instant/instant_loader.h
@@ -20,6 +20,7 @@ class Profile;
namespace content {
struct OpenURLParams;
+class NavigationEntry;
class WebContents;
}
@@ -85,6 +86,11 @@ class InstantLoader : public content::NotificationObserver,
// not NULL.
scoped_ptr<content::WebContents> ReleaseContents() WARN_UNUSED_RESULT;
+ // Returns the initial navigation entry for the most recently loaded URL.
+ const content::NavigationEntry* base_navigation_entry() {
+ return base_navigation_entry_.get();
+ }
+
private:
// Overridden from content::NotificationObserver:
virtual void Observe(int type,
@@ -122,6 +128,9 @@ class InstantLoader : public content::NotificationObserver,
// Called when |stale_page_timer_| fires.
base::Closure on_stale_callback_;
+ // The initial navigation entry for the URL we loaded.
+ scoped_ptr<const content::NavigationEntry> base_navigation_entry_;
+
// Used to mark when the page is stale.
base::Timer stale_page_timer_;
« 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