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

Unified Diff: content/browser/renderer_host/p2p/socket_host.h

Issue 159353002: This CL adds methods to manipulate RTP header extension, particularly (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: 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 24e49bdccd098c9d4ecc9f1448f80738bf15eb4f..2be075f402565dc3a7eeae365c7c71db64d35413 100644
--- a/content/browser/renderer_host/p2p/socket_host.h
+++ b/content/browser/renderer_host/p2p/socket_host.h
@@ -18,9 +18,23 @@ namespace net {
class URLRequestContextGetter;
}
+namespace talk_base {
+struct PacketOptions;
+}
+
namespace content {
class P2PMessageThrottler;
+namespace packet_processing_helpers {
+void MaybeUpdatePacketAbsSendTimeExtn(char* data, int length,
Solis 2014/03/03 10:22:29 Why aren't there any tests for this function?
Mallinath (Gone from Chromium) 2014/03/04 00:15:46 I am not sure how can I test this method in partic
Solis 2014/03/04 09:53:24 1. There's logic in the function which isn't that
Mallinath (Gone from Chromium) 2014/03/06 07:39:43 I added test cases for MaybeUpdatePacketAbsSendTim
+ const talk_base::PacketOptions& options);
+bool GetRtpPacketStartPositionAndLength(char* data, int length,
+ int* rtp_start_pos,
+ int* rtp_packet_length);
+bool MaybeUpdateRtpAbsSendTimeExtn(char* rtp, int length,
+ int extension_id);
+} // packet_processing_helpers
+
// Base class for P2P sockets.
class CONTENT_EXPORT P2PSocketHost {
public:
@@ -49,7 +63,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
« no previous file with comments | « no previous file | content/browser/renderer_host/p2p/socket_host.cc » ('j') | content/browser/renderer_host/p2p/socket_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698