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

Side by Side Diff: chrome/renderer/media/cast_session_delegate.cc

Issue 270493003: Cast: Deduplicate event types in cast library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 7 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 | « no previous file | media/cast/audio_receiver/audio_receiver.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 "chrome/renderer/media/cast_session_delegate.h" 5 #include "chrome/renderer/media/cast_session_delegate.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop_proxy.h" 9 #include "base/message_loop/message_loop_proxy.h"
10 #include "chrome/renderer/media/cast_threads.h" 10 #include "chrome/renderer/media/cast_threads.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void CastSessionDelegate::LogRawEvents( 209 void CastSessionDelegate::LogRawEvents(
210 const std::vector<media::cast::PacketEvent>& packet_events) { 210 const std::vector<media::cast::PacketEvent>& packet_events) {
211 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread()); 211 DCHECK(io_message_loop_proxy_->BelongsToCurrentThread());
212 212
213 for (std::vector<media::cast::PacketEvent>::const_iterator it = 213 for (std::vector<media::cast::PacketEvent>::const_iterator it =
214 packet_events.begin(); 214 packet_events.begin();
215 it != packet_events.end(); 215 it != packet_events.end();
216 ++it) { 216 ++it) {
217 cast_environment_->Logging()->InsertPacketEvent(it->timestamp, 217 cast_environment_->Logging()->InsertPacketEvent(it->timestamp,
218 it->type, 218 it->type,
219 it->media_type,
219 it->rtp_timestamp, 220 it->rtp_timestamp,
220 it->frame_id, 221 it->frame_id,
221 it->packet_id, 222 it->packet_id,
222 it->max_packet_id, 223 it->max_packet_id,
223 it->size); 224 it->size);
224 } 225 }
225 } 226 }
OLDNEW
« no previous file with comments | « no previous file | media/cast/audio_receiver/audio_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698