| 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>());
|
| }
|
|
|
|
|