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

Unified Diff: mojo/common/tracing_impl.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 9 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 | « mojo/common/trace_controller_impl.cc ('k') | mojo/common/tracing_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/tracing_impl.h
diff --git a/mojo/common/tracing_impl.h b/mojo/common/tracing_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..c9118e2536fca74e7db2c61bd388ed4944146dce
--- /dev/null
+++ b/mojo/common/tracing_impl.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_COMMON_TRACING_IMPL_H_
+#define MOJO_COMMON_TRACING_IMPL_H_
+
+#include "base/macros.h"
+#include "mojo/services/tracing/tracing.mojom.h"
+#include "third_party/mojo/src/mojo/public/cpp/application/interface_factory.h"
+
+namespace mojo {
+
+class ApplicationImpl;
+
+class TracingImpl : public InterfaceFactory<tracing::TraceController> {
+ public:
+ TracingImpl();
+ ~TracingImpl() override;
+
+ // This connects to the tracing service and registers ourselves to provide
+ // tracing data on demand.
+ void Initialize(ApplicationImpl* app);
+
+ private:
+ // InterfaceFactory<tracing::TraceController> implementation.
+ void Create(ApplicationConnection* connection,
+ InterfaceRequest<tracing::TraceController> request) override;
+
+ DISALLOW_COPY_AND_ASSIGN(TracingImpl);
+};
+
+} // namespace mojo
+
+#endif // MOJO_COMMON_TRACING_IMPL_H_
« no previous file with comments | « mojo/common/trace_controller_impl.cc ('k') | mojo/common/tracing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698