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

Unified Diff: content/browser/tracing/tracing_controller_impl.h

Issue 1243743002: Slow Reports - Add message filter to trigger background traces from child processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use impl directly. Created 5 years, 5 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/browser/tracing/tracing_controller_impl.h
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index fa31c7a10396edce7c35eec88c96a1ff022101c7..3a3a652ef0b930a7c8b89a11b7dd6233908e46a4 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -61,9 +61,16 @@ class TracingControllerImpl
const base::trace_event::MemoryDumpCallback& callback) override;
bool IsCoordinatorProcess() const override;
- private:
+ typedef base::Callback<void(TraceMessageFilter*)>
+ TraceMessageFilterAddedCallback;
typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterSet;
+ TraceMessageFilterAddedCallback trace_filter_added_callback_;
+ void SetTraceMessageFilterAddedCallback(
+ const TraceMessageFilterAddedCallback& callback);
+ void GetTraceMessageFilters(TraceMessageFilterSet*);
+
+ private:
friend struct base::DefaultLazyInstanceTraits<TracingControllerImpl>;
friend class TraceMessageFilter;
@@ -189,6 +196,8 @@ class TracingControllerImpl
std::string watch_event_name_;
WatchEventCallback watch_event_callback_;
+ TraceMessageFilterAddedCallback trace_message_filter_added_callback_;
+
std::set<std::string> known_category_groups_;
std::set<TracingUI*> tracing_uis_;
scoped_refptr<TraceDataSink> trace_data_sink_;

Powered by Google App Engine
This is Rietveld 408576698