Create RtcEventLogEncoderLegacy

We're moving to an RtcEventLog interface that accepts std::unique_ptr<EventLog> and stores the event for encoding when encoding becomes necessary, rather than before. This will be useful while we maintain the legacy (current) encoding alongside the new encoding on which we're working.

This CL introduces RtcEventLogEncoderLegacy, which takes provides the encoding currently done by RtcEventLogImpl. After this, we can modify RtcEventLogImpl to use a dynamically chosen encoding, allowing us to easily choose between the current encoding and the new one on which we're working.

BUG=webrtc:8111
TBR=stefan@webrtc.org

Change-Id: I3dde7e222a40a117549a094a59b04219467f490a
Reviewed-on: https://webrtc-review.googlesource.com/1364
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Reviewed-by: Elad Alon <eladalon@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20116}
diff --git a/logging/rtc_event_log/rtc_stream_config.h b/logging/rtc_event_log/rtc_stream_config.h
index bbba251..e43ee7e 100644
--- a/logging/rtc_event_log/rtc_stream_config.h
+++ b/logging/rtc_event_log/rtc_stream_config.h
@@ -24,6 +24,8 @@
   StreamConfig();
   ~StreamConfig();
 
+  bool operator==(const StreamConfig& other) const;
+
   uint32_t local_ssrc = 0;
   uint32_t remote_ssrc = 0;
   uint32_t rtx_ssrc = 0;
@@ -39,6 +41,8 @@
           int payload_type,
           int rtx_payload_type);
 
+    bool operator==(const Codec& other) const;
+
     std::string payload_name;
     int payload_type;
     int rtx_payload_type;