blob: 5c5cce1242b6771e63d5b658480e53b7533190cf [file] [log] [blame]
tereliusb246a292016-08-23 18:15:25 -07001/*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020010#ifndef RTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
11#define RTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_
tereliusb246a292016-08-23 18:15:25 -070012
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020013#include "rtc_base/ignore_wundef.h"
kwiberg77eab702016-09-28 17:42:01 -070014RTC_PUSH_IGNORING_WUNDEF()
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020015#include "rtc_tools/event_log_visualizer/chart.pb.h"
kwiberg77eab702016-09-28 17:42:01 -070016RTC_POP_IGNORING_WUNDEF()
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020017#include "rtc_tools/event_log_visualizer/plot_base.h"
tereliusb246a292016-08-23 18:15:25 -070018
19namespace webrtc {
20namespace plotting {
21
22class ProtobufPlot final : public Plot {
23 public:
24 ProtobufPlot();
25 ~ProtobufPlot() override;
26 void Draw() override;
skvladf581eb72016-09-07 11:15:37 -070027 void ExportProtobuf(webrtc::analytics::Chart* chart);
tereliusb246a292016-08-23 18:15:25 -070028};
29
30class ProtobufPlotCollection final : public PlotCollection {
31 public:
32 ProtobufPlotCollection();
33 ~ProtobufPlotCollection() override;
34 void Draw() override;
35 Plot* AppendNewPlot() override;
skvladf581eb72016-09-07 11:15:37 -070036 void ExportProtobuf(webrtc::analytics::ChartCollection* collection);
tereliusb246a292016-08-23 18:15:25 -070037};
38
39} // namespace plotting
40} // namespace webrtc
41
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020042#endif // RTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_