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_; |