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

Unified Diff: shell/tracer.h

Issue 1334213002: Support for tracing app initialization. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Change BindingSet to Binding Created 5 years, 3 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: shell/tracer.h
diff --git a/shell/tracer.h b/shell/tracer.h
index 0299e6548ddddf41d9857ee34afdfc666740bd1b..c55a566dd08618bb05f0cd4c603883fb61089d49 100644
--- a/shell/tracer.h
+++ b/shell/tracer.h
@@ -14,6 +14,7 @@
#include "base/memory/ref_counted_memory.h"
#include "mojo/common/trace_provider_impl.h"
#include "mojo/data_pipe_utils/data_pipe_drainer.h"
+#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
namespace shell {
@@ -81,6 +82,8 @@ class Tracer : public mojo::common::DataPipeDrainer::Client {
tracing::TraceCollectorPtr coordinator_;
scoped_ptr<mojo::common::DataPipeDrainer> drainer_;
+ mojo::TraceProviderImpl trace_provider_impl_;
+ mojo::Binding<tracing::TraceProvider> trace_provider_binding_;
// Whether we're currently tracing.
bool tracing_;
// How long to trace after message loop creation.
« mojo/common/trace_provider_impl.cc ('K') | « shell/context.cc ('k') | shell/tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698