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

Unified Diff: media/cast/transport/cast_transport_defines.h

Issue 100823015: Cast: move net->transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating transport callback Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/cast/transport/cast_transport.gyp ('k') | media/cast/transport/cast_transport_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/transport/cast_transport_defines.h
diff --git a/media/cast/net/cast_net_defines.h b/media/cast/transport/cast_transport_defines.h
similarity index 85%
rename from media/cast/net/cast_net_defines.h
rename to media/cast/transport/cast_transport_defines.h
index 769a1be70c4eb25fd65ffdf53ff48dffa6d1016a..611981c489a478de4e0009bfc034d52fe3e970dc 100644
--- a/media/cast/net/cast_net_defines.h
+++ b/media/cast/transport/cast_transport_defines.h
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_CAST_NET_CAST_NET_DEFINES_H_
-#define MEDIA_CAST_NET_CAST_NET_DEFINES_H_
+#ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
+#define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
#include <list>
#include "base/basictypes.h"
namespace media {
namespace cast {
+namespace transport {
// Rtcp defines.
@@ -52,6 +53,14 @@ struct RtcpDlrrReportBlock {
uint32 delay_since_last_rr;
};
+inline bool operator==(RtcpSenderInfo lhs, RtcpSenderInfo rhs) {
+ return lhs.ntp_seconds == rhs.ntp_seconds &&
+ lhs.ntp_fraction == rhs.ntp_fraction &&
+ lhs.rtp_timestamp == rhs.rtp_timestamp &&
+ lhs.send_packet_count == rhs.send_packet_count &&
+ lhs.send_octet_count == rhs.send_octet_count;
+}
+
typedef std::list<RtcpSenderFrameLogMessage> RtcpSenderLogMessage;
class FrameIdWrapHelper {
@@ -118,7 +127,8 @@ class FrameIdWrapHelper {
Range range_;
};
+} // namespace transport
} // namespace cast
} // namespace media
-#endif // MEDIA_CAST_NET_CAST_NET_DEFINES_H_
+#endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
« no previous file with comments | « media/cast/transport/cast_transport.gyp ('k') | media/cast/transport/cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698