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

Side by Side 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: clean up 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 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 #ifndef MEDIA_CAST_NET_CAST_NET_DEFINES_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
6 #define MEDIA_CAST_NET_CAST_NET_DEFINES_H_ 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 namespace media { 10 namespace media {
11 namespace cast { 11 namespace cast {
12 namespace transport {
12 13
13 class FrameIdWrapHelper { 14 class FrameIdWrapHelper {
14 public: 15 public:
15 FrameIdWrapHelper() 16 FrameIdWrapHelper()
16 : first_(true), 17 : first_(true),
17 frame_id_wrap_count_(0), 18 frame_id_wrap_count_(0),
18 range_(kLowRange) {} 19 range_(kLowRange) {}
19 20
20 uint32 MapTo32bitsFrameId(const uint8 over_the_wire_frame_id) { 21 uint32 MapTo32bitsFrameId(const uint8 over_the_wire_frame_id) {
21 if (first_) { 22 if (first_) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 68
68 static const uint8 kLowRangeThreshold = 0x0f; 69 static const uint8 kLowRangeThreshold = 0x0f;
69 static const uint8 kHighRangeThreshold = 0xf0; 70 static const uint8 kHighRangeThreshold = 0xf0;
70 static const uint32 kStartFrameId = GG_UINT32_C(0xffffffff); 71 static const uint32 kStartFrameId = GG_UINT32_C(0xffffffff);
71 72
72 bool first_; 73 bool first_;
73 uint32 frame_id_wrap_count_; 74 uint32 frame_id_wrap_count_;
74 Range range_; 75 Range range_;
75 }; 76 };
76 77
77 78 } // namespace transport
78 } // namespace cast 79 } // namespace cast
79 } // namespace media 80 } // namespace media
80 81
81 #endif // MEDIA_CAST_NET_CAST_NET_DEFINES_H_ 82 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698