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

Unified Diff: remoting/protocol/content_description.cc

Issue 9331003: Improving the decoder pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: remoting/protocol/content_description.cc
diff --git a/remoting/protocol/content_description.cc b/remoting/protocol/content_description.cc
index 5e157ad08009ac8d8922d945dcc688437ef0c90b..e2e3a9e7ec6e88eb4ff7b83120b2eeef7716209c 100644
--- a/remoting/protocol/content_description.cc
+++ b/remoting/protocol/content_description.cc
@@ -40,6 +40,7 @@ const char kDatagramTransport[] = "datagram";
const char kSrtpTransport[] = "srtp";
const char kRtpDtlsTransport[] = "rtp-dtls";
+const char kVerbatimCodec[] = "verbatim";
const char kVp8Codec[] = "vp8";
const char kZipCodec[] = "zip";
@@ -60,6 +61,8 @@ const char* GetTransportName(ChannelConfig::TransportType type) {
const char* GetCodecName(ChannelConfig::Codec type) {
switch (type) {
+ case ChannelConfig::CODEC_VERBATIM:
+ return kVerbatimCodec;
case ChannelConfig::CODEC_VP8:
return kVp8Codec;
case ChannelConfig::CODEC_ZIP:
@@ -111,7 +114,9 @@ bool ParseTransportName(const std::string& value,
}
bool ParseCodecName(const std::string& value, ChannelConfig::Codec* codec) {
- if (value == kVp8Codec) {
+ if (value == kVerbatimCodec) {
+ *codec = ChannelConfig::CODEC_VERBATIM;
+ } else if (value == kVp8Codec) {
*codec = ChannelConfig::CODEC_VP8;
} else if (value == kZipCodec) {
*codec = ChannelConfig::CODEC_ZIP;

Powered by Google App Engine
This is Rietveld 408576698