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

Side by Side Diff: media/cast/transport/cast_transport_defines.h

Issue 126843003: Revert of Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ 5 #ifndef MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ 6 #define MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map>
10 #include <set>
11
12 #include "base/basictypes.h" 9 #include "base/basictypes.h"
13 #include "base/time/time.h"
14 10
15 namespace media { 11 namespace media {
16 namespace cast { 12 namespace cast {
17 namespace transport { 13 namespace transport {
18 14
19 enum CastTransportStatus {
20 UNINITIALIZED,
21 INITIALIZED,
22 INVALID_CRYPTO_CONFIG,
23 SOCKET_ERROR,
24 // TODO(mikhal): Add.
25 };
26
27 const size_t kMaxIpPacketSize = 1500;
28 // Each uint16 represents one packet id within a cast frame.
29 typedef std::set<uint16> PacketIdSet;
30 // Each uint8 represents one cast frame.
31 typedef std::map<uint8, PacketIdSet> MissingFramesAndPacketsMap;
32
33 // Rtcp defines. 15 // Rtcp defines.
34 16
35 enum RtcpPacketTypes {
36 kPacketTypeLow = 194, // SMPTE time-code mapping.
37 kPacketTypeInterArrivalJitterReport = 195,
38 kPacketTypeSenderReport = 200,
39 kPacketTypeReceiverReport = 201,
40 kPacketTypeSdes = 202,
41 kPacketTypeBye = 203,
42 kPacketTypeApplicationDefined = 204,
43 kPacketTypeGenericRtpFeedback = 205,
44 kPacketTypePayloadSpecific = 206,
45 kPacketTypeXr = 207,
46 kPacketTypeHigh = 210, // Port Mapping.
47 };
48
49 // Log messages form sender to receiver. 17 // Log messages form sender to receiver.
50 enum RtcpSenderFrameStatus { 18 enum RtcpSenderFrameStatus {
51 kRtcpSenderFrameStatusUnknown = 0, 19 kRtcpSenderFrameStatusUnknown = 0,
52 kRtcpSenderFrameStatusDroppedByEncoder = 1, 20 kRtcpSenderFrameStatusDroppedByEncoder = 1,
53 kRtcpSenderFrameStatusDroppedByFlowControl = 2, 21 kRtcpSenderFrameStatusDroppedByFlowControl = 2,
54 kRtcpSenderFrameStatusSentToNetwork = 3, 22 kRtcpSenderFrameStatusSentToNetwork = 3,
55 }; 23 };
56 24
57 struct RtcpSenderFrameLogMessage { 25 struct RtcpSenderFrameLogMessage {
58 RtcpSenderFrameStatus frame_status; 26 RtcpSenderFrameStatus frame_status;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 bool first_; 125 bool first_;
158 uint32 frame_id_wrap_count_; 126 uint32 frame_id_wrap_count_;
159 Range range_; 127 Range range_;
160 }; 128 };
161 129
162 } // namespace transport 130 } // namespace transport
163 } // namespace cast 131 } // namespace cast
164 } // namespace media 132 } // namespace media
165 133
166 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_ 134 #endif // MEDIA_CAST_TRANSPORT_CAST_TRANSPORT_DEFINES_H_
OLDNEW
« no previous file with comments | « media/cast/transport/cast_transport_config.cc ('k') | media/cast/transport/cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698