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

Side by Side Diff: media/cast/cast_config.cc

Issue 1337243003: Extracted hardcoded constants from cast_rtp_stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « chrome/renderer/media/cast_rtp_stream.cc ('k') | media/cast/cast_defines.h » ('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/cast_config.h" 5 #include "media/cast/cast_config.h"
6 6
7 namespace {
8 const float kDefaultCongestionControlBackOff = 0.875f;
9 } // namespace
10
7 namespace media { 11 namespace media {
8 namespace cast { 12 namespace cast {
9 13
10 // TODO(miu): Revisit code factoring of these structs. There are a number of 14 // TODO(miu): Revisit code factoring of these structs. There are a number of
11 // common elements between them all, so it might be reasonable to only have one 15 // common elements between them all, so it might be reasonable to only have one
12 // or two structs; or, at least a common base class. 16 // or two structs; or, at least a common base class.
13 17
14 // TODO(miu): Make sure all POD members are initialized by ctors. Policy 18 // TODO(miu): Make sure all POD members are initialized by ctors. Policy
15 // decision: Reasonable defaults or use invalid placeholder values to expose 19 // decision: Reasonable defaults or use invalid placeholder values to expose
16 // unset members? 20 // unset members?
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 rtp_payload_type(0), 66 rtp_payload_type(0),
63 rtp_timebase(0), 67 rtp_timebase(0),
64 channels(0), 68 channels(0),
65 target_frame_rate(0), 69 target_frame_rate(0),
66 codec(CODEC_UNKNOWN) {} 70 codec(CODEC_UNKNOWN) {}
67 71
68 FrameReceiverConfig::~FrameReceiverConfig() {} 72 FrameReceiverConfig::~FrameReceiverConfig() {}
69 73
70 } // namespace cast 74 } // namespace cast
71 } // namespace media 75 } // namespace media
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | media/cast/cast_defines.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698