summaryrefslogtreecommitdiffstats
path: root/content/public/browser/web_contents_delegate.h
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 19:22:46 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-22 19:22:46 +0000
commitaa62afd7cd7d99a896f0e3b3ab4da77d03203d5c (patch)
tree7ea4f9aaebe4e506dcac133e8c21083192e8ab5f /content/public/browser/web_contents_delegate.h
parent3b639bcefe133191bd99813d2568647d605381f1 (diff)
downloadchromium_src-aa62afd7cd7d99a896f0e3b3ab4da77d03203d5c.zip
chromium_src-aa62afd7cd7d99a896f0e3b3ab4da77d03203d5c.tar.gz
chromium_src-aa62afd7cd7d99a896f0e3b3ab4da77d03203d5c.tar.bz2
Don't leave aborted URLs in the omnibox unless we're on the NTP.
BUG=355537 TEST=See bug for repro steps. Review URL: https://codereview.chromium.org/245943002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser/web_contents_delegate.h')
-rw-r--r--content/public/browser/web_contents_delegate.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 0210314..d22d7c7 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -173,6 +173,11 @@ class CONTENT_EXPORT WebContentsDelegate {
// Default is false.
virtual bool ShouldSuppressDialogs();
+ // Returns whether pending NavigationEntries for aborted browser-initiated
+ // navigations should be preserved (and thus returned from GetVisibleURL).
+ // Defaults to false.
+ virtual bool ShouldPreserveAbortedURLs(WebContents* source);
+
// Add a message to the console. Returning true indicates that the delegate
// handled the message. If false is returned the default logging mechanism
// will be used for the message.