Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: media/base/mime_util.h

Issue 2700893003: Various MimeUtil cleanups. (Closed)
Patch Set: Feedback Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/media/recorder/media_recorder_handler.cc ('k') | media/base/mime_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/mime_util.h
diff --git a/media/base/mime_util.h b/media/base/mime_util.h
index 6a49eba2a6e0ea5dd55b80bfc0b1c5c117b6f1a3..d7a39f41a959dc2045d2addab12cbb2045b53be2 100644
--- a/media/base/mime_util.h
+++ b/media/base/mime_util.h
@@ -16,14 +16,14 @@ namespace media {
// supported/recognized MIME types.
MEDIA_EXPORT bool IsSupportedMediaMimeType(const std::string& mime_type);
-// Parses a codec string, populating |codecs_out| with the prefix of each codec
-// in the string |codecs_in|. For example, passed "aaa.b.c,dd.eee", if
+// Splits various codecs into |codecs_out|, conditionally stripping the profile
+// and level info when |strip| == true. For example, passed "aaa.b.c,dd.eee", if
// |strip| == true |codecs_out| will contain {"aaa", "dd"}, if |strip| == false
// |codecs_out| will contain {"aaa.b.c", "dd.eee"}.
// See http://www.ietf.org/rfc/rfc4281.txt.
-MEDIA_EXPORT void ParseCodecString(const std::string& codecs,
- std::vector<std::string>* codecs_out,
- bool strip);
+MEDIA_EXPORT void SplitCodecsToVector(const std::string& codecs,
+ std::vector<std::string>* codecs_out,
+ bool strip);
// Indicates that the MIME type and (possible codec string) are supported.
enum SupportsType {
« no previous file with comments | « content/renderer/media/recorder/media_recorder_handler.cc ('k') | media/base/mime_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698