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

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

Issue 2830353003: Tracing for NavigationHandle lifetime and state. (Closed)
Patch Set: Rebase. Created 3 years, 8 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
Index: content/public/browser/navigation_throttle.h
diff --git a/content/public/browser/navigation_throttle.h b/content/public/browser/navigation_throttle.h
index 109a2fc4760f79c66796aa76b14fc135b3e07301..eb079fa40f64618dea62f18e6cb89bbab9573f7a 100644
--- a/content/public/browser/navigation_throttle.h
+++ b/content/public/browser/navigation_throttle.h
@@ -77,6 +77,10 @@ class CONTENT_EXPORT NavigationThrottle {
// asynchronously.
virtual ThrottleCheckResult WillProcessResponse();
+ // Returns the name of the throttle for logging purposes. It must not return
+ // nullptr.
+ virtual const char* GetNameForLogging() = 0;
+
// The NavigationHandle that is tracking the information related to this
// navigation.
NavigationHandle* navigation_handle() const { return navigation_handle_; }
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl_unittest.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698