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

Unified Diff: shell/tracer.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 | « shell/context.cc ('k') | shell/tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/tracer.h
diff --git a/shell/tracer.h b/shell/tracer.h
index 1c7d17e15d4324cf39149a2b12e6c6d76eae3491..8a1b57d020b52ecafef60ae4dd6a99c49b8392e4 100644
--- a/shell/tracer.h
+++ b/shell/tracer.h
@@ -13,7 +13,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted_memory.h"
#include "mojo/common/data_pipe_drainer.h"
-#include "mojo/common/trace_controller_impl.h"
+#include "mojo/common/trace_provider_impl.h"
#include "mojo/services/tracing/public/interfaces/tracing.mojom.h"
namespace shell {
@@ -43,15 +43,15 @@ class Tracer : public mojo::common::DataPipeDrainer::Client {
// Starts collecting data from the tracing service with the given set of
// categories.
void StartCollectingFromTracingService(
- tracing::TraceCoordinatorPtr coordinator);
+ tracing::TraceCollectorPtr coordinator);
// Stops tracing and flushes all collected trace data to the file specified in
// Start(). Blocks until the file write is complete. May be called after the
// message loop is shut down.
void StopAndFlushToFile();
- void ConnectToController(
- mojo::InterfaceRequest<tracing::TraceController> request);
+ void ConnectToProvider(
+ mojo::InterfaceRequest<tracing::TraceProvider> request);
private:
void StopTracingAndFlushToDisk();
@@ -78,7 +78,7 @@ class Tracer : public mojo::common::DataPipeDrainer::Client {
void WriteFooterAndClose();
// Set when connected to the tracing service.
- tracing::TraceCoordinatorPtr coordinator_;
+ tracing::TraceCollectorPtr coordinator_;
scoped_ptr<mojo::common::DataPipeDrainer> drainer_;
// Whether we're currently tracing.
« no previous file with comments | « shell/context.cc ('k') | shell/tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698