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

Unified Diff: content/public/browser/web_contents_observer.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: Minor spelling fix. 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
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index a037efb70a67e021af4dd95794684f557affd038..5d1ed1a170f0d31b19cd1e3f7e7801ba02d53c74 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -100,6 +100,9 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
WindowOpenDisposition disposition,
PageTransition transition) {}
+ // Invoked just before the WebContents opens the |url|.
+ virtual void AboutToOpenURL(const GURL& url) {}
+
virtual void DidOpenRequestedURL(WebContents* new_contents,
const GURL& url,
const Referrer& referrer,

Powered by Google App Engine
This is Rietveld 408576698