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

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

Issue 2657323003: Convert HistoryTabHelper to use the new navigation callbacks. (Closed)
Patch Set: nit Created 3 years, 10 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
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/navigation_handle.h
diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h
index ca8997f77cb86939a520434fb171d912a348633e..5e4f560772df5205331b2d3b94edb7862f0e8f07 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -177,6 +177,14 @@ class CONTENT_EXPORT NavigationHandle {
// GetNetErrorCode will be net::OK.
virtual bool IsErrorPage() = 0;
+ // True if the committed entry has replaced the existing one. A non-user
+ // initiated redirect causes such replacement.
+ virtual bool DidReplaceEntry() = 0;
+
+ // Returns true if the browser history should be updated. Otherwise only
+ // the session history will be updated. E.g., on unreachable urls.
+ virtual bool ShouldUpdateHistory() = 0;
+
// The previous main frame URL that the user was on. This may be empty if
// there was no last committed entry.
virtual const GURL& GetPreviousURL() = 0;
« no previous file with comments | « content/common/navigation_params.h ('k') | content/public/browser/navigation_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698