terelius | b246a29 | 2016-08-24 01:15:25 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 10 | #ifndef WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |
| 11 | #define WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |
| 12 | |
skvlad | f581eb7 | 2016-09-07 18:15:37 | [diff] [blame] | 13 | #include "webrtc/tools/event_log_visualizer/chart.pb.h" |
terelius | b246a29 | 2016-08-24 01:15:25 | [diff] [blame] | 14 | #include "webrtc/tools/event_log_visualizer/plot_base.h" |
| 15 | |
| 16 | namespace webrtc { |
| 17 | namespace plotting { |
| 18 | |
| 19 | class ProtobufPlot final : public Plot { |
| 20 | public: |
| 21 | ProtobufPlot(); |
| 22 | ~ProtobufPlot() override; |
| 23 | void Draw() override; |
skvlad | f581eb7 | 2016-09-07 18:15:37 | [diff] [blame] | 24 | void ExportProtobuf(webrtc::analytics::Chart* chart); |
terelius | b246a29 | 2016-08-24 01:15:25 | [diff] [blame] | 25 | }; |
| 26 | |
| 27 | class ProtobufPlotCollection final : public PlotCollection { |
| 28 | public: |
| 29 | ProtobufPlotCollection(); |
| 30 | ~ProtobufPlotCollection() override; |
| 31 | void Draw() override; |
| 32 | Plot* AppendNewPlot() override; |
skvlad | f581eb7 | 2016-09-07 18:15:37 | [diff] [blame] | 33 | void ExportProtobuf(webrtc::analytics::ChartCollection* collection); |
terelius | b246a29 | 2016-08-24 01:15:25 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | } // namespace plotting |
| 37 | } // namespace webrtc |
| 38 | |
| 39 | #endif // WEBRTC_TOOLS_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ |