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

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
« no previous file with comments | « no previous file | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..da6039db9996a6a9c4e16ef0eff2b2aa88074aac 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);
« no previous file with comments | « no previous file | content/browser/tracing/tracing_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698