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 RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ 11 #define RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ 12 13 #include "rtc_base/ignore_wundef.h" 14 RTC_PUSH_IGNORING_WUNDEF() 15 #include "rtc_tools/rtc_event_log_visualizer/proto/chart.pb.h" RTC_POP_IGNORING_WUNDEF()16RTC_POP_IGNORING_WUNDEF() 17 #include "rtc_tools/rtc_event_log_visualizer/plot_base.h" 18 19 namespace webrtc { 20 21 class ProtobufPlot final : public Plot { 22 public: 23 ProtobufPlot(); 24 ~ProtobufPlot() override; 25 void Draw() override; 26 }; 27 28 class ProtobufPlotCollection final : public PlotCollection { 29 public: 30 // This class is deprecated. Use PlotCollection and ExportProtobuf() instead. 31 RTC_DEPRECATED ProtobufPlotCollection(); 32 ~ProtobufPlotCollection() override; 33 void Draw() override; 34 Plot* AppendNewPlot() override; 35 }; 36 37 } // namespace webrtc 38 39 #endif // RTC_TOOLS_RTC_EVENT_LOG_VISUALIZER_PLOT_PROTOBUF_H_ 40