summaryrefslogtreecommitdiffstats
path: root/content/browser/tracing/tracing_controller_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/tracing/tracing_controller_impl.h')
-rw-r--r--content/browser/tracing/tracing_controller_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/content/browser/tracing/tracing_controller_impl.h b/content/browser/tracing/tracing_controller_impl.h
index 0684373..da6039d 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -20,6 +20,7 @@ class RefCountedString;
namespace content {
class TraceMessageFilter;
+class TracingUI;
class TracingControllerImpl : public TracingController {
public:
@@ -54,6 +55,9 @@ class TracingControllerImpl : public TracingController {
const WatchEventCallback& callback) OVERRIDE;
virtual bool CancelWatchEvent() OVERRIDE;
+ void RegisterTracingUI(TracingUI* tracing_ui);
+ void UnregisterTracingUI(TracingUI* tracing_ui);
+
private:
typedef std::set<scoped_refptr<TraceMessageFilter> > TraceMessageFilterSet;
class ResultFile;
@@ -136,6 +140,8 @@ class TracingControllerImpl : public TracingController {
const EnableMonitoringDoneCallback& callback);
void OnDisableMonitoringDone(const DisableMonitoringDoneCallback& callback);
+ void OnMonitoringStateChanged(bool is_monitoring);
+
TraceMessageFilterSet trace_message_filters_;
// Pending acks for DisableRecording.
@@ -162,6 +168,7 @@ class TracingControllerImpl : public TracingController {
WatchEventCallback watch_event_callback_;
std::set<std::string> known_category_groups_;
+ std::set<TracingUI*> tracing_uis_;
scoped_ptr<ResultFile> result_file_;
scoped_ptr<ResultFile> monitoring_snapshot_file_;
DISALLOW_COPY_AND_ASSIGN(TracingControllerImpl);