Index: content/browser/renderer_host/p2p/socket_host.h |
diff --git a/content/browser/renderer_host/p2p/socket_host.h b/content/browser/renderer_host/p2p/socket_host.h |
index 46fcde5b7d56a22a815f1a0cf850b2fa538c4252..0f01ba71ae4de4b6ca61af182daf846f1e027104 100644 |
--- a/content/browser/renderer_host/p2p/socket_host.h |
+++ b/content/browser/renderer_host/p2p/socket_host.h |
@@ -25,6 +25,22 @@ struct PacketOptions; |
namespace content { |
class P2PMessageThrottler; |
+ |
+// Helper methods for processing a packet. |
Solis
2014/02/27 09:36:10
put these in a nested namespace:
namespace packet
Mallinath (Gone from Chromium)
2014/02/27 19:43:10
Done.
|
+bool GetRtpPacketStartPositionAndLength(char* data, int length, |
Solis
2014/02/27 09:36:10
Only GetRtpPacketStartPositionAndLength() and Mayb
Mallinath (Gone from Chromium)
2014/02/27 19:43:10
Done.
|
+ int* rtp_start_pos, |
+ int* rtp_packet_length); |
+bool ValidateRtpHeader(char* rtp, int length); |
+ |
+void MaybeUpdatePacketAbsSendTimeExtn(char* data, int length, |
+ const talk_base::PacketOptions& options); |
+bool MaybeUpdateRtpAbsSendTimeExtn(char* rtp, int length, |
+ int extension_id); |
+void UpdateAbsSendTimeExtnValue(char* data, int len); |
+ |
+void MaybeUpdateRtpAuthTag(char* packet, int len, |
+ const talk_base::PacketOptions& options); |
+ |
// Base class for P2P sockets. |
class CONTENT_EXPORT P2PSocketHost { |
public: |
@@ -53,7 +69,6 @@ class CONTENT_EXPORT P2PSocketHost { |
virtual bool SetOption(P2PSocketOption option, int value) = 0; |
protected: |
- friend class P2PSocketHostTcpTestBase; |
// TODO(mallinath) - Remove this below enum and use one defined in |
// libjingle/souce/talk/p2p/base/stun.h |