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

Unified Diff: webrtc/api/mediatypes.h

Issue 2675173003: Adding "adapter" ORTC objects on top of ChannelManager/BaseChannel/etc. (Closed)
Patch Set: Add memcheck suppression for end-to-end tests. 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 | « webrtc/api/BUILD.gn ('k') | webrtc/api/mediatypes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/mediatypes.h
diff --git a/webrtc/api/mediatypes.h b/webrtc/api/mediatypes.h
index 19acf4b94edd1a9d6d3dcdd408b0a70bb0040636..ec3a70a5e83e1fbf8969c60b73c110b4e6da1d9c 100644
--- a/webrtc/api/mediatypes.h
+++ b/webrtc/api/mediatypes.h
@@ -22,6 +22,9 @@ enum MediaType {
};
std::string MediaTypeToString(MediaType type);
+// Aborts on invalid string. Only expected to be used on strings that are
+// guaranteed to be valid, such as MediaStreamTrackInterface::kind().
+MediaType MediaTypeFromString(const std::string& type_str);
} // namespace cricket
« no previous file with comments | « webrtc/api/BUILD.gn ('k') | webrtc/api/mediatypes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698