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

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

Issue 10837082: implement SetWatchEvent and WaitForEvent for trace-based-tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update / merge -- no change Created 8 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/common/child_trace_message_filter.cc ('k') | content/public/browser/trace_subscriber.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6bdff6c0c13d7c1c0d51a8bd6b7f8282d8bc42b5 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 std::string& category_name,
+ const std::string& 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.
« no previous file with comments | « content/common/child_trace_message_filter.cc ('k') | content/public/browser/trace_subscriber.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698