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

Side by Side Diff: media/cast/transport/rtp_sender/rtp_sender.cc

Issue 145873006: ui/base/resource: Roll our own version of ReadBigEndian() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for gcp20_device 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/cast/transport/rtp_sender/rtp_sender.h" 5 #include "media/cast/transport/rtp_sender/rtp_sender.h"
6 6
7 #include "base/big_endian.h"
tfarina 2014/02/26 02:54:24 note to myself: remove, unused?
tfarina 2014/02/26 02:54:24 Done.
7 #include "base/logging.h" 8 #include "base/logging.h"
8 #include "base/rand_util.h" 9 #include "base/rand_util.h"
9 #include "media/cast/transport/cast_transport_defines.h" 10 #include "media/cast/transport/cast_transport_defines.h"
10 #include "media/cast/transport/pacing/paced_sender.h" 11 #include "media/cast/transport/pacing/paced_sender.h"
11 #include "net/base/big_endian.h"
12 12
13 namespace media { 13 namespace media {
14 namespace cast { 14 namespace cast {
15 namespace transport { 15 namespace transport {
16 16
17 // Schedule the RTP statistics callback every 33mS. As this interval affects the 17 // Schedule the RTP statistics callback every 33mS. As this interval affects the
18 // time offset of the render and playout times, we want it in the same ball park 18 // time offset of the render and playout times, we want it in the same ball park
19 // as the frame rate. 19 // as the frame rate.
20 static const int kStatsCallbackIntervalMs = 33; 20 static const int kStatsCallbackIntervalMs = 33;
21 21
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 packetizer_->LastSentTimestamp(&time_sent, &rtp_timestamp); 145 packetizer_->LastSentTimestamp(&time_sent, &rtp_timestamp);
146 sender_info.send_packet_count = packetizer_->send_packets_count(); 146 sender_info.send_packet_count = packetizer_->send_packets_count();
147 sender_info.send_octet_count = packetizer_->send_octet_count(); 147 sender_info.send_octet_count = packetizer_->send_octet_count();
148 stats_callback_.Run(sender_info, time_sent, rtp_timestamp); 148 stats_callback_.Run(sender_info, time_sent, rtp_timestamp);
149 ScheduleNextStatsReport(); 149 ScheduleNextStatsReport();
150 } 150 }
151 151
152 } // namespace transport 152 } // namespace transport
153 } // namespace cast 153 } // namespace cast
154 } // namespace media 154 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698