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

Unified Diff: media/base/media_log_event.h

Issue 2764613003: Media: Add MEDIALOG_CREATED event
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« content/renderer/render_frame_impl.cc ('K') | « media/base/media_log.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_log_event.h
diff --git a/media/base/media_log_event.h b/media/base/media_log_event.h
index 73d81dcaf1da192770a812c8c12ce40d32e4663a..e02459f7ad8cabaebc1015ad15aa4751628634d3 100644
--- a/media/base/media_log_event.h
+++ b/media/base/media_log_event.h
@@ -30,6 +30,17 @@ struct MediaLogEvent {
}
enum Type {
+ // A MediaLog is being created.
+ // params: none.
+ //
+ // This event allows the browser service to discard state but still
+ // determine which events belong to new players. It must be logged exactly
+ // once, as the first event in a MediaLog.
+ //
+ // Note: RenderMediaLog sends this event automatically; future
+ // implementations of MediaLog should do so as well.
+ MEDIALOG_CREATED,
+
// A WebMediaPlayer is being created or destroyed.
// params: none.
WEBMEDIAPLAYER_CREATED,
« content/renderer/render_frame_impl.cc ('K') | « media/base/media_log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698