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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 10831060: Refactor the Android port to allow access to the chrome layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixed. Created 8 years, 4 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: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index ac817cceffd19474ebdf33b78f9d9c866287affe..5a339aec3d06e456acf4cd0e72c0c92ab85b4295 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -307,6 +307,12 @@ class CONTENT_EXPORT WebContentsDelegate {
// changed.
virtual void ContentRestrictionsChanged(WebContents* source) {}
+#if defined(OS_ANDROID)
+ // Returns true if the delegate wants to handle the url instead. Default
+ // returns false.
+ virtual bool ShouldOverrideLoading(const GURL& url);
+#endif
+
// Notification that the tab is hung.
virtual void RendererUnresponsive(WebContents* source) {}

Powered by Google App Engine
This is Rietveld 408576698