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

Side by Side Diff: media/cast/transport/pacing/paced_sender.cc

Issue 388663003: Cast: Reshuffle files under media/cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DEPS Created 6 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 | 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 #include "media/cast/transport/pacing/paced_sender.h" 5 #include "media/cast/transport/pacing/paced_sender.h"
6 6
7 #include "base/big_endian.h" 7 #include "base/big_endian.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "media/cast/logging/logging_impl.h"
10 11
11 namespace media { 12 namespace media {
12 namespace cast { 13 namespace cast {
13 namespace transport { 14 namespace transport {
14 15
15 namespace { 16 namespace {
16 17
17 static const int64 kPacingIntervalMs = 10; 18 static const int64 kPacingIntervalMs = 10;
18 // Each frame will be split into no more than kPacingMaxBurstsPerFrame 19 // Each frame will be split into no more than kPacingMaxBurstsPerFrame
19 // bursts of packets. 20 // bursts of packets.
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 252 }
252 253
253 EventMediaType media_type = is_audio ? AUDIO_EVENT : VIDEO_EVENT; 254 EventMediaType media_type = is_audio ? AUDIO_EVENT : VIDEO_EVENT;
254 logging_->InsertSinglePacketEvent(clock_->NowTicks(), event, media_type, 255 logging_->InsertSinglePacketEvent(clock_->NowTicks(), event, media_type,
255 packet); 256 packet);
256 } 257 }
257 258
258 } // namespace transport 259 } // namespace transport
259 } // namespace cast 260 } // namespace cast
260 } // namespace media 261 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698