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

Unified Diff: services/tracing/trace_recorder_impl.cc

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 | « services/tracing/trace_recorder_impl.h ('k') | services/tracing/tracing_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/tracing/trace_recorder_impl.cc
diff --git a/services/tracing/collector_impl.cc b/services/tracing/trace_recorder_impl.cc
similarity index 52%
rename from services/tracing/collector_impl.cc
rename to services/tracing/trace_recorder_impl.cc
index 3f32f88d27f3c3042a50deca4e2c952cd77899e3..f548be17923791abc091e87119423b45b43d1cef 100644
--- a/services/tracing/collector_impl.cc
+++ b/services/tracing/trace_recorder_impl.cc
@@ -2,27 +2,28 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/tracing/collector_impl.h"
+#include "services/tracing/trace_recorder_impl.h"
namespace tracing {
-CollectorImpl::CollectorImpl(mojo::InterfaceRequest<TraceDataCollector> request,
- TraceDataSink* sink)
+TraceRecorderImpl::TraceRecorderImpl(
+ mojo::InterfaceRequest<TraceRecorder> request,
+ TraceDataSink* sink)
: sink_(sink), binding_(this, request.Pass()) {
}
-CollectorImpl::~CollectorImpl() {
+TraceRecorderImpl::~TraceRecorderImpl() {
}
-void CollectorImpl::TryRead() {
+void TraceRecorderImpl::TryRead() {
binding_.WaitForIncomingMethodCall(MojoDeadline(0));
}
-mojo::Handle CollectorImpl::TraceDataCollectorHandle() const {
+mojo::Handle TraceRecorderImpl::TraceRecorderHandle() const {
return binding_.handle();
}
-void CollectorImpl::DataCollected(const mojo::String& json) {
+void TraceRecorderImpl::Record(const mojo::String& json) {
sink_->AddChunk(json.To<std::string>());
}
« no previous file with comments | « services/tracing/trace_recorder_impl.h ('k') | services/tracing/tracing_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698