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

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

Issue 11416187: Commit instant loader when the instant page navigates away from instant URL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merging in sreeram's changes. Created 8 years 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 | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/instant/instant_client.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_client.h
diff --git a/chrome/browser/instant/instant_client.h b/chrome/browser/instant/instant_client.h
index 95ab9096d75d298fdc9736ea61838e03d824cad0..e18c1ef99633fbe2fe661f2b516f9f9ed7d0f135 100644
--- a/chrome/browser/instant/instant_client.h
+++ b/chrome/browser/instant/instant_client.h
@@ -58,6 +58,9 @@ class InstantClient : public content::WebContentsObserver {
// strokes.
virtual void StopCapturingKeyStrokes() = 0;
+ // Called when the page is about to navigate.
+ virtual void InstantClientAboutToNavigate(const GURL& url) = 0;
+
protected:
virtual ~Delegate();
};
@@ -123,6 +126,13 @@ class InstantClient : public content::WebContentsObserver {
bool is_main_frame,
content::RenderViewHost* render_view_host) OVERRIDE;
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ virtual void DidCommitProvisionalLoadForFrame(
+ int64 frame_id,
+ bool is_main_frame,
+ const GURL& url,
+ content::PageTransition transition_type,
+ content::RenderViewHost* render_view_host) OVERRIDE;
+ virtual void AboutToOpenURL(const GURL& url) OVERRIDE;
void SetSuggestions(int page_id,
const std::vector<InstantSuggestion>& suggestions);
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/instant/instant_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698