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

Unified Diff: talk/app/webrtc/sctputils.cc

Issue 1403633005: Revert of Moving MediaStreamSignaling logic into PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 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 | « talk/app/webrtc/sctputils.h ('k') | talk/app/webrtc/sctputils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/app/webrtc/sctputils.cc
diff --git a/talk/app/webrtc/sctputils.cc b/talk/app/webrtc/sctputils.cc
index 22395995116c5de4e01ba8b85c61906ce3f12e18..a64383720f85a3d86a25ef80fdba1defa51bc8f3 100644
--- a/talk/app/webrtc/sctputils.cc
+++ b/talk/app/webrtc/sctputils.cc
@@ -47,19 +47,6 @@
DCOMCT_UNORDERED_PARTIAL_RTXS = 0x81,
DCOMCT_UNORDERED_PARTIAL_TIME = 0x82,
};
-
-bool IsOpenMessage(const rtc::Buffer& payload) {
- // Format defined at
- // http://tools.ietf.org/html/draft-jesup-rtcweb-data-protocol-04
-
- rtc::ByteBuffer buffer(payload);
- uint8_t message_type;
- if (!buffer.ReadUInt8(&message_type)) {
- LOG(LS_WARNING) << "Could not read OPEN message type.";
- return false;
- }
- return message_type == DATA_CHANNEL_OPEN_MESSAGE_TYPE;
-}
bool ParseDataChannelOpenMessage(const rtc::Buffer& payload,
std::string* label,
« no previous file with comments | « talk/app/webrtc/sctputils.h ('k') | talk/app/webrtc/sctputils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698