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

Side by Side Diff: media/cast/net/cast_transport_config.h

Issue 2234753002: media: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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
« no previous file with comments | « media/blink/cdm_session_adapter.cc ('k') | media/cast/sender/audio_encoder.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TRANSPORT_CONFIG_H_ 5 #ifndef MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 6 #define MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 DEPENDENCY_LAST = KEY 100 DEPENDENCY_LAST = KEY
101 }; 101 };
102 102
103 EncodedFrame(); 103 EncodedFrame();
104 virtual ~EncodedFrame(); 104 virtual ~EncodedFrame();
105 105
106 // Convenience accessors to data as an array of uint8_t elements. 106 // Convenience accessors to data as an array of uint8_t elements.
107 const uint8_t* bytes() const { 107 const uint8_t* bytes() const {
108 return reinterpret_cast<uint8_t*>( 108 return reinterpret_cast<uint8_t*>(
109 string_as_array(const_cast<std::string*>(&data))); 109 base::string_as_array(const_cast<std::string*>(&data)));
110 } 110 }
111 uint8_t* mutable_bytes() { 111 uint8_t* mutable_bytes() {
112 return reinterpret_cast<uint8_t*>(string_as_array(&data)); 112 return reinterpret_cast<uint8_t*>(base::string_as_array(&data));
113 } 113 }
114 114
115 // Copies all data members except |data| to |dest|. 115 // Copies all data members except |data| to |dest|.
116 // Does not modify |dest->data|. 116 // Does not modify |dest->data|.
117 void CopyMetadataTo(EncodedFrame* dest) const; 117 void CopyMetadataTo(EncodedFrame* dest) const;
118 118
119 // This frame's dependency relationship with respect to other frames. 119 // This frame's dependency relationship with respect to other frames.
120 Dependency dependency; 120 Dependency dependency;
121 121
122 // The label associated with this frame. Implies an ordering relative to 122 // The label associated with this frame. Implies an ordering relative to
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 lhs.ntp_fraction == rhs.ntp_fraction && 216 lhs.ntp_fraction == rhs.ntp_fraction &&
217 lhs.rtp_timestamp == rhs.rtp_timestamp && 217 lhs.rtp_timestamp == rhs.rtp_timestamp &&
218 lhs.send_packet_count == rhs.send_packet_count && 218 lhs.send_packet_count == rhs.send_packet_count &&
219 lhs.send_octet_count == rhs.send_octet_count; 219 lhs.send_octet_count == rhs.send_octet_count;
220 } 220 }
221 221
222 } // namespace cast 222 } // namespace cast
223 } // namespace media 223 } // namespace media
224 224
225 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_ 225 #endif // MEDIA_CAST_NET_CAST_TRANSPORT_CONFIG_H_
OLDNEW
« no previous file with comments | « media/blink/cdm_session_adapter.cc ('k') | media/cast/sender/audio_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698