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

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

Issue 127703002: Add a mechanism to let TracingController invoke JavaScript via TracingUI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 0684373a96192c170d79a3e8a4d19429c2157172..990cd7bcd2a3f7953b3c2e4d59134531c9d1f464 100644
--- a/content/browser/tracing/tracing_controller_impl.h
+++ b/content/browser/tracing/tracing_controller_impl.h
@@ -54,6 +54,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 +139,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 +167,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);
« no previous file with comments | « no previous file | content/browser/tracing/tracing_controller_impl.cc » ('j') | content/public/browser/tracing_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698