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

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

Issue 2668883002: Convert NavigationMetricsRecorder to use the new navigation callbacks. (Closed)
Patch Set: merge 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/browser/frame_host/navigator_impl.cc ('k') | no next file » | 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 f777975bfd7377e83e9df52216639d5b40ce2de6..6f4afec3e395966b39d15aec2958de5538386f36 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -177,6 +177,10 @@ class CONTENT_EXPORT NavigationHandle {
// GetNetErrorCode will be net::OK.
virtual bool IsErrorPage() = 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;
+
// Returns the remote address of the socket which fetched this resource.
virtual net::HostPortPair GetSocketAddress() = 0;
« no previous file with comments | « content/browser/frame_host/navigator_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698