Remove MediaContentDescriptionImpl<Codec>

after dependencies adopted the RtpMediaContentDescription which
this is currently aliased to.

Also move definition of AudioCodecs and VideoCodecs to the place
where codecs are defined.

BUG=webrtc:15214

Change-Id: I9b0456e1c69c8b23e0cc7665a59baae268872d9c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/325021
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Philipp Hancke <phancke@microsoft.com>
Reviewed-by: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41020}
diff --git a/media/base/codec.h b/media/base/codec.h
index 036a172..228acad 100644
--- a/media/base/codec.h
+++ b/media/base/codec.h
@@ -28,7 +28,7 @@
 
 namespace cricket {
 
-typedef std::map<std::string, std::string> CodecParameterMap;
+using CodecParameterMap = std::map<std::string, std::string>;
 
 class FeedbackParam {
  public:
@@ -187,6 +187,9 @@
 using VideoCodec = Codec;
 using AudioCodec = Codec;
 
+using VideoCodecs = std::vector<Codec>;
+using AudioCodecs = std::vector<Codec>;
+
 Codec CreateAudioCodec(int id,
                        const std::string& name,
                        int clockrate,
diff --git a/pc/session_description.h b/pc/session_description.h
index 044fccf..403e465 100644
--- a/pc/session_description.h
+++ b/pc/session_description.h
@@ -43,10 +43,8 @@
 
 namespace cricket {
 
-typedef std::vector<AudioCodec> AudioCodecs;
-typedef std::vector<VideoCodec> VideoCodecs;
-typedef std::vector<CryptoParams> CryptoParamsVec;
-typedef std::vector<webrtc::RtpExtension> RtpHeaderExtensions;
+using CryptoParamsVec = std::vector<CryptoParams>;
+using RtpHeaderExtensions = std::vector<webrtc::RtpExtension>;
 
 // Options to control how session descriptions are generated.
 const int kAutoBandwidth = -1;
@@ -258,8 +256,9 @@
   }
 
  protected:
-  // TODO(bugs.webrtc.org/15214): move all RTP related things to a subclass that
-  // the SCTP content description does not inherit from.
+  // TODO(bugs.webrtc.org/15214): move all RTP related things to
+  // RtpMediaDescription that the SCTP content description does
+  // not inherit from.
   std::string protocol_;
 
  private:
@@ -290,9 +289,7 @@
   std::vector<Codec> codecs_;
 };
 
-template <class C>
-class MediaContentDescriptionImpl : public MediaContentDescription {};
-using RtpMediaContentDescription = MediaContentDescriptionImpl<Codec>;
+class RtpMediaContentDescription : public MediaContentDescription {};
 
 class AudioContentDescription : public RtpMediaContentDescription {
  public: