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

Unified Diff: base/debug/trace_event_impl.h

Issue 492823002: Add OnBeforeTraceLogDisabled notification to EnabledStateObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename the callback to OnBeforeTraceLogDisabled Created 6 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 | « no previous file | base/debug/trace_event_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/trace_event_impl.h
diff --git a/base/debug/trace_event_impl.h b/base/debug/trace_event_impl.h
index 4cbb72144739043fe7a25f348dd6fc572ce722d5..f6fe8999c43d9df73b1e573d61e68d363aacaedf 100644
--- a/base/debug/trace_event_impl.h
+++ b/base/debug/trace_event_impl.h
@@ -502,6 +502,10 @@ class BASE_EXPORT TraceLog {
// Called just after the tracing system disables, outside of the |lock_|.
// TraceLog::IsEnabled() is false at this point.
virtual void OnTraceLogDisabled() = 0;
+
+ // Called right before the tracing system disables, outside of the |lock_|.
+ // TraceLog::IsEnabled() is true at this point.
+ virtual void OnBeforeTraceLogDisabled() { }
};
void AddEnabledStateObserver(EnabledStateObserver* listener);
void RemoveEnabledStateObserver(EnabledStateObserver* listener);
« no previous file with comments | « no previous file | base/debug/trace_event_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698