diff options
Diffstat (limited to 'content/public/browser')
-rw-r--r-- | content/public/browser/web_contents_delegate.cc | 4 | ||||
-rw-r--r-- | content/public/browser/web_contents_delegate.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc index 22430da..5346c2a 100644 --- a/content/public/browser/web_contents_delegate.cc +++ b/content/public/browser/web_contents_delegate.cc @@ -37,6 +37,10 @@ bool WebContentsDelegate::ShouldSuppressDialogs() { return false; } +bool WebContentsDelegate::ShouldPreserveAbortedURLs(WebContents* source) { + return false; +} + bool WebContentsDelegate::AddMessageToConsole(WebContents* source, int32 level, const base::string16& message, 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. |