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

Unified Diff: services/tracing/trace_data_sink.h

Issue 853943005: Make tracing work on Android (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: nits Created 5 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698