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

Unified Diff: mojo/services/tracing/public/cpp/tracing_impl.h

Issue 1878893002: Move //mojo/services tracing & catalog to //services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@63move
Patch Set: . Created 4 years, 8 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: mojo/services/tracing/public/cpp/tracing_impl.h
diff --git a/mojo/services/tracing/public/cpp/tracing_impl.h b/mojo/services/tracing/public/cpp/tracing_impl.h
deleted file mode 100644
index 45ed84199fcdc94535a4300b9d0023cd9cf07225..0000000000000000000000000000000000000000
--- a/mojo/services/tracing/public/cpp/tracing_impl.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_
-#define MOJO_SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_
-
-#include "base/macros.h"
-#include "mojo/services/tracing/public/cpp/trace_provider_impl.h"
-#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
-#include "services/shell/public/cpp/interface_factory.h"
-
-namespace mojo {
-
-class Connection;
-class Connector;
-
-// Connects to mojo:tracing during your Application's Initialize() call once
-// per process.
-//
-// We need to deal with multiple ways of packaging mojo applications
-// together. We'll need to deal with packages that use the mojo.ContentHandler
-// interface to bundle several Applciations into a single physical on disk
-// mojo binary, and with those same services each in their own mojo binary.
-//
-// Have your bundle ContentHandler own a TracingImpl, and each Application own
-// a TracingImpl. In bundles, the second TracingImpl will be a no-op.
-class TracingImpl : public InterfaceFactory<tracing::TraceProvider> {
- public:
- TracingImpl();
- ~TracingImpl() override;
-
- // This connects to the tracing service and registers ourselves to provide
- // tracing data on demand.
- void Initialize(Connector* connector, const std::string& url);
-
- private:
- // InterfaceFactory<tracing::TraceProvider> implementation.
- void Create(Connection* connection,
- InterfaceRequest<tracing::TraceProvider> request) override;
-
- scoped_ptr<Connection> connection_;
- TraceProviderImpl provider_impl_;
-
- DISALLOW_COPY_AND_ASSIGN(TracingImpl);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_TRACING_PUBLIC_CPP_TRACING_IMPL_H_
« no previous file with comments | « mojo/services/tracing/public/cpp/trace_provider_impl.cc ('k') | mojo/services/tracing/public/cpp/tracing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698