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

Side by Side Diff: chrome/renderer/media/cast_rtp_stream.h

Issue 2068133005: Refactoring: Use enum for RtpPayloadType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to Patch 2. Created 4 years, 5 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
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 CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 20 matching lines...) Expand all
31 std::string key; 31 std::string key;
32 std::string value; 32 std::string value;
33 33
34 CastCodecSpecificParams(); 34 CastCodecSpecificParams();
35 ~CastCodecSpecificParams(); 35 ~CastCodecSpecificParams();
36 }; 36 };
37 37
38 // Defines the basic properties of a payload supported by cast transport. 38 // Defines the basic properties of a payload supported by cast transport.
39 struct CastRtpPayloadParams { 39 struct CastRtpPayloadParams {
40 // RTP specific field that identifies the content type. 40 // RTP specific field that identifies the content type.
41 int payload_type = media::cast::kDefaultRtpVideoPayloadType; 41 media::cast::RtpPayloadType payload_type =
42 media::cast::RtpPayloadType::VIDEO_VP8;
42 43
43 // Maximum latency in milliseconds. Implemetation tries to keep latency 44 // Maximum latency in milliseconds. Implemetation tries to keep latency
44 // under this threshold. 45 // under this threshold.
45 int max_latency_ms = media::cast::kDefaultRtpMaxDelayMs; 46 int max_latency_ms = media::cast::kDefaultRtpMaxDelayMs;
46 47
47 // Minimum latency. 48 // Minimum latency.
48 // Default value (0) means use max_latency_ms. 49 // Default value (0) means use max_latency_ms.
49 int min_latency_ms = 0; 50 int min_latency_ms = 0;
50 51
51 // Starting latency on animated content. 52 // Starting latency on animated content.
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 CastRtpParams params_; 166 CastRtpParams params_;
166 base::Closure stop_callback_; 167 base::Closure stop_callback_;
167 ErrorCallback error_callback_; 168 ErrorCallback error_callback_;
168 169
169 base::WeakPtrFactory<CastRtpStream> weak_factory_; 170 base::WeakPtrFactory<CastRtpStream> weak_factory_;
170 171
171 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); 172 DISALLOW_COPY_AND_ASSIGN(CastRtpStream);
172 }; 173 };
173 174
174 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 175 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.cc ('k') | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698