• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2017 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 
11 #ifndef LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_H_
12 #define LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_H_
13 
14 #include <deque>
15 #include <memory>
16 #include <string>
17 
18 #include "api/rtc_event_log/rtc_event.h"
19 
20 namespace webrtc {
21 class RtcEventLogEncoder {
22  public:
23   virtual ~RtcEventLogEncoder() = default;
24 
25   virtual std::string EncodeLogStart(int64_t timestamp_us,
26                                      int64_t utc_time_us) = 0;
27   virtual std::string EncodeLogEnd(int64_t timestamp_us) = 0;
28 
29   virtual std::string EncodeBatch(
30       std::deque<std::unique_ptr<RtcEvent>>::const_iterator begin,
31       std::deque<std::unique_ptr<RtcEvent>>::const_iterator end) = 0;
32 };
33 
34 }  // namespace webrtc
35 
36 #endif  // LOGGING_RTC_EVENT_LOG_ENCODER_RTC_EVENT_LOG_ENCODER_H_
37