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

Side by Side Diff: media/cast/rtcp/rtcp_sender.cc

Issue 219723003: Remove all uses of GG_UINT32_C. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 8 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
« no previous file with comments | « media/cast/logging/logging_impl_unittest.cc ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/rtcp/rtcp_sender.h" 5 #include "media/cast/rtcp/rtcp_sender.h"
6 6
7 #include <stdint.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <vector> 10 #include <vector>
9 11
10 #include "base/big_endian.h" 12 #include "base/big_endian.h"
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "media/cast/cast_environment.h" 14 #include "media/cast/cast_environment.h"
13 #include "media/cast/rtcp/rtcp_defines.h" 15 #include "media/cast/rtcp/rtcp_defines.h"
14 #include "media/cast/rtcp/rtcp_utility.h" 16 #include "media/cast/rtcp/rtcp_utility.h"
15 #include "media/cast/transport/cast_transport_defines.h" 17 #include "media/cast/transport/cast_transport_defines.h"
16 #include "media/cast/transport/pacing/paced_sender.h" 18 #include "media/cast/transport/pacing/paced_sender.h"
17 19
18 namespace media { 20 namespace media {
19 namespace cast { 21 namespace cast {
20 namespace { 22 namespace {
21 23
22 // Max delta is 4095 milliseconds because we need to be able to encode it in 24 // Max delta is 4095 milliseconds because we need to be able to encode it in
23 // 12 bits. 25 // 12 bits.
24 const int64 kMaxWireFormatTimeDeltaMs = GG_INT64_C(0xfff); 26 const int64 kMaxWireFormatTimeDeltaMs = INT64_C(0xfff);
25 27
26 // Converts a log event type to an integer value. 28 // Converts a log event type to an integer value.
27 // NOTE: We have only allocated 4 bits to represent the type of event over the 29 // NOTE: We have only allocated 4 bits to represent the type of event over the
28 // wire. Therefore, this function can only return values from 0 to 15. 30 // wire. Therefore, this function can only return values from 0 to 15.
29 int ConvertEventTypeToWireFormat(const CastLoggingEvent& event) { 31 int ConvertEventTypeToWireFormat(const CastLoggingEvent& event) {
30 switch (event) { 32 switch (event) {
31 case kAudioAckSent: 33 case kAudioAckSent:
32 return 1; 34 return 1;
33 case kAudioPlayoutDelay: 35 case kAudioPlayoutDelay:
34 return 2; 36 return 2;
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 if (frame_log_messages.event_log_messages_.empty()) { 803 if (frame_log_messages.event_log_messages_.empty()) {
802 // We sent all messages on this frame; pop the frame header. 804 // We sent all messages on this frame; pop the frame header.
803 receiver_log_message.pop_front(); 805 receiver_log_message.pop_front();
804 } 806 }
805 } 807 }
806 DCHECK_EQ(total_number_of_messages_to_send, 0u); 808 DCHECK_EQ(total_number_of_messages_to_send, 0u);
807 } 809 }
808 810
809 } // namespace cast 811 } // namespace cast
810 } // namespace media 812 } // namespace media
OLDNEW
« no previous file with comments | « media/cast/logging/logging_impl_unittest.cc ('k') | media/cast/rtcp/rtcp_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698