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

Side by Side Diff: media/base/media_log.cc

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase ToT Created 9 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/base/media_log.h" 5 #include "media/base/media_log.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/atomic_sequence_num.h" 9 #include "base/atomic_sequence_num.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 28 matching lines...) Expand all
39 case MediaLogEvent::PIPELINE_STATE_CHANGED: 39 case MediaLogEvent::PIPELINE_STATE_CHANGED:
40 return "PIPELINE_STATE_CHANGED"; 40 return "PIPELINE_STATE_CHANGED";
41 case MediaLogEvent::PIPELINE_ERROR: 41 case MediaLogEvent::PIPELINE_ERROR:
42 return "PIPELINE_ERROR"; 42 return "PIPELINE_ERROR";
43 case MediaLogEvent::VIDEO_SIZE_SET: 43 case MediaLogEvent::VIDEO_SIZE_SET:
44 return "VIDEO_SIZE_SET"; 44 return "VIDEO_SIZE_SET";
45 case MediaLogEvent::DURATION_SET: 45 case MediaLogEvent::DURATION_SET:
46 return "DURATION_SET"; 46 return "DURATION_SET";
47 case MediaLogEvent::TOTAL_BYTES_SET: 47 case MediaLogEvent::TOTAL_BYTES_SET:
48 return "TOTAL_BYTES_SET"; 48 return "TOTAL_BYTES_SET";
49 case MediaLogEvent::STREAMING_SET:
50 return "STREAMING_SET";
51 case MediaLogEvent::LOADED_SET:
52 return "LOADED_SET";
53 case MediaLogEvent::NETWORK_ACTIVITY_SET: 49 case MediaLogEvent::NETWORK_ACTIVITY_SET:
54 return "NETWORK_ACTIVITY_SET"; 50 return "NETWORK_ACTIVITY_SET";
55 case MediaLogEvent::ENDED: 51 case MediaLogEvent::ENDED:
56 return "ENDED"; 52 return "ENDED";
57 case MediaLogEvent::AUDIO_RENDERER_DISABLED: 53 case MediaLogEvent::AUDIO_RENDERER_DISABLED:
58 return "AUDIO_RENDERER_DISABLED"; 54 return "AUDIO_RENDERER_DISABLED";
59 case MediaLogEvent::BUFFERED_EXTENTS_CHANGED: 55 case MediaLogEvent::BUFFERED_EXTENTS_CHANGED:
60 return "BUFFERED_EXTENTS_CHANGED"; 56 return "BUFFERED_EXTENTS_CHANGED";
61 case MediaLogEvent::STATISTICS_UPDATED: 57 case MediaLogEvent::STATISTICS_UPDATED:
62 return "STATISTICS_UPDATED"; 58 return "STATISTICS_UPDATED";
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 last_statistics_.video_bytes_decoded); 253 last_statistics_.video_bytes_decoded);
258 event->params.SetInteger("video_frames_decoded", 254 event->params.SetInteger("video_frames_decoded",
259 last_statistics_.video_frames_decoded); 255 last_statistics_.video_frames_decoded);
260 event->params.SetInteger("video_frames_dropped", 256 event->params.SetInteger("video_frames_dropped",
261 last_statistics_.video_frames_dropped); 257 last_statistics_.video_frames_dropped);
262 AddEvent(event.release()); 258 AddEvent(event.release());
263 stats_update_pending_ = false; 259 stats_update_pending_ = false;
264 } 260 }
265 261
266 } //namespace media 262 } //namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698