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

Unified Diff: mojo/common/trace_provider_impl.h

Issue 1284293003: Rename tracing interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 4 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/trace_provider_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/trace_provider_impl.h
diff --git a/mojo/common/trace_controller_impl.h b/mojo/common/trace_provider_impl.h
similarity index 63%
rename from mojo/common/trace_controller_impl.h
rename to mojo/common/trace_provider_impl.h
index 482f709947dfccfd027fd6a6767766bdee717ab5..82735a57c8cef7d9e7da11a5145b87a0d5973083 100644
--- a/mojo/common/trace_controller_impl.h
+++ b/mojo/common/trace_provider_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
-#define MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
+#ifndef MOJO_COMMON_TRACE_PROVIDER_IMPL_H_
+#define MOJO_COMMON_TRACE_PROVIDER_IMPL_H_
#include "base/memory/ref_counted_memory.h"
#include "mojo/public/cpp/bindings/interface_request.h"
@@ -12,11 +12,10 @@
namespace mojo {
-class TraceControllerImpl : public tracing::TraceController {
+class TraceProviderImpl : public tracing::TraceProvider {
public:
- explicit TraceControllerImpl(
- InterfaceRequest<tracing::TraceController> request);
- ~TraceControllerImpl() override;
+ explicit TraceProviderImpl(InterfaceRequest<tracing::TraceProvider> request);
+ ~TraceProviderImpl() override;
// Set to true if base::trace_event::TraceLog is enabled externally to this
// class. If this is set to true this class will save the collector but not
@@ -27,21 +26,21 @@ class TraceControllerImpl : public tracing::TraceController {
}
private:
- // tracing::TraceController implementation:
+ // tracing::TraceProvider implementation:
void StartTracing(const String& categories,
- tracing::TraceDataCollectorPtr collector) override;
+ tracing::TraceRecorderPtr collector) override;
void StopTracing() override;
void SendChunk(const scoped_refptr<base::RefCountedString>& events_str,
bool has_more_events);
bool tracing_already_started_;
- tracing::TraceDataCollectorPtr collector_;
- StrongBinding<tracing::TraceController> binding_;
+ tracing::TraceRecorderPtr recorder_;
+ StrongBinding<tracing::TraceProvider> binding_;
- DISALLOW_COPY_AND_ASSIGN(TraceControllerImpl);
+ DISALLOW_COPY_AND_ASSIGN(TraceProviderImpl);
};
} // namespace mojo
-#endif // MOJO_COMMON_TRACING_CONTROLLER_IMPL_H_
+#endif // MOJO_COMMON_TRACE_PROVIDER_IMPL_H_
« no previous file with comments | « mojo/common/trace_controller_impl.cc ('k') | mojo/common/trace_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698