| Index: services/tracing/trace_data_sink.h
|
| diff --git a/services/tracing/trace_data_sink.h b/services/tracing/trace_data_sink.h
|
| index 4efcbf60f921781a7df7fff158560a4c97382a2c..c5d3f14d3b3969b597375e0f9982b30c0ce62ebe 100644
|
| --- a/services/tracing/trace_data_sink.h
|
| +++ b/services/tracing/trace_data_sink.h
|
| @@ -7,20 +7,21 @@
|
|
|
| #include <string>
|
|
|
| -#include "base/files/file_path.h"
|
| +#include "base/basictypes.h"
|
| +#include "mojo/public/cpp/system/data_pipe.h"
|
|
|
| namespace tracing {
|
|
|
| class TraceDataSink {
|
| public:
|
| - explicit TraceDataSink(base::FilePath base_name);
|
| + explicit TraceDataSink(mojo::ScopedDataPipeProducerHandle pipe);
|
| ~TraceDataSink();
|
|
|
| void AddChunk(const std::string& json);
|
| void Flush();
|
|
|
| private:
|
| - FILE* file_;
|
| + mojo::ScopedDataPipeProducerHandle pipe_;
|
| bool empty_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TraceDataSink);
|
|
|