Index: content/public/browser/trace_controller.h |
diff --git a/content/public/browser/trace_controller.h b/content/public/browser/trace_controller.h |
index 0558363300a9d8c0c9d5911da48d1b954dfa925d..f48378e2277520097a2722c894136539f7521f0a 100644 |
--- a/content/public/browser/trace_controller.h |
+++ b/content/public/browser/trace_controller.h |
@@ -68,6 +68,16 @@ class TraceController { |
// the caller is not the current subscriber. |
virtual bool GetTraceBufferPercentFullAsync(TraceSubscriber* subscriber) = 0; |
+ // |subscriber->OnEventWatchNotification()| will be called every time the |
+ // given event occurs on any process. |
+ virtual bool SetWatchEvent(TraceSubscriber* subscriber, |
+ const char* category_name, |
+ const char* event_name) = 0; |
+ |
+ // Cancel the watch event. If tracing is enabled, this may race with the |
+ // watch event notification firing. |
+ virtual bool CancelWatchEvent(TraceSubscriber* subscriber) = 0; |
+ |
// Cancel the subscriber so that it will not be called when EndTracingAsync is |
// acked by all child processes. This will also call EndTracingAsync |
// internally if necessary. |