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

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

Issue 2174423004: Add page load metrics for no-store forward back navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update histograms.xml and add another histogram Created 4 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
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('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 ff190a757cd2be4cdc147e72aa5367cdf71e8fa8..007cd9da717135ea9779f9b1bb015445b4a2f6a8 100644
--- a/content/public/browser/navigation_handle.h
+++ b/content/public/browser/navigation_handle.h
@@ -15,6 +15,10 @@
class GURL;
+namespace net {
+class HttpResponseHeaders;
+} // namespace net
+
namespace content {
class NavigationData;
class NavigationThrottle;
@@ -150,6 +154,12 @@ class CONTENT_EXPORT NavigationHandle {
// Whether the navigation resulted in an error page.
virtual bool IsErrorPage() = 0;
+ // Returns the response headers for the request or nullptr if there are none.
+ // This should only be accessed after a redirect was encountered or after the
+ // navigation is ready to commit. The headers returned should not be modified,
+ // as modifications will not be reflected in the network stack.
+ virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0;
+
// Resumes a navigation that was previously deferred by a NavigationThrottle.
virtual void Resume() = 0;
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698