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

Side by Side Diff: talk/media/base/mediachannel.h

Issue 1481963002: Add header extension filtering for WebRtcVoiceEngine/MediaChannel. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Simpler implementation of set<>, requiring no heap allocs. Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 bool operator==(const RtpHeaderExtension& ext) const { 406 bool operator==(const RtpHeaderExtension& ext) const {
407 // id is a reserved word in objective-c. Therefore the id attribute has to 407 // id is a reserved word in objective-c. Therefore the id attribute has to
408 // be a fully qualified name in order to compile on IOS. 408 // be a fully qualified name in order to compile on IOS.
409 return this->id == ext.id && 409 return this->id == ext.id &&
410 uri == ext.uri; 410 uri == ext.uri;
411 } 411 }
412 412
413 std::string ToString() const { 413 std::string ToString() const {
414 std::ostringstream ost; 414 std::ostringstream ost;
415 ost << "{"; 415 ost << "{";
416 ost << "id: , " << id;
417 ost << "uri: " << uri; 416 ost << "uri: " << uri;
417 ost << ", id: " << id;
418 ost << "}"; 418 ost << "}";
419 return ost.str(); 419 return ost.str();
420 } 420 }
421 421
422 std::string uri; 422 std::string uri;
423 int id; 423 int id;
424 // TODO(juberti): SendRecv direction; 424 // TODO(juberti): SendRecv direction;
425 }; 425 };
426 426
427 // Returns the named header extension if found among all extensions, NULL 427 // Returns the named header extension if found among all extensions, NULL
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 // Signal when the media channel is ready to send the stream. Arguments are: 1214 // Signal when the media channel is ready to send the stream. Arguments are:
1215 // writable(bool) 1215 // writable(bool)
1216 sigslot::signal1<bool> SignalReadyToSend; 1216 sigslot::signal1<bool> SignalReadyToSend;
1217 // Signal for notifying that the remote side has closed the DataChannel. 1217 // Signal for notifying that the remote side has closed the DataChannel.
1218 sigslot::signal1<uint32_t> SignalStreamClosedRemotely; 1218 sigslot::signal1<uint32_t> SignalStreamClosedRemotely;
1219 }; 1219 };
1220 1220
1221 } // namespace cricket 1221 } // namespace cricket
1222 1222
1223 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_ 1223 #endif // TALK_MEDIA_BASE_MEDIACHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698