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

Unified Diff: media/cast/logging/log_serializer.h

Issue 170063006: Cast: Add JS API to get raw events logs from cast extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pass presubmit Created 6 years, 10 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
« no previous file with comments | « chrome/test/data/extensions/api_test/cast_streaming/common.js ('k') | media/cast/logging/log_serializer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/logging/log_serializer.h
diff --git a/media/cast/logging/log_serializer.h b/media/cast/logging/log_serializer.h
index 679cce1e6b41b1dbccdf6a7b5bc0c5c7e42fb1e8..18fe50aa2b81123fea939c2018212aebd356effb 100644
--- a/media/cast/logging/log_serializer.h
+++ b/media/cast/logging/log_serializer.h
@@ -36,7 +36,8 @@ class LogSerializer {
~LogSerializer();
// Serialize |frame_events|, |packet_events|, |first_rtp_timestamp|
- // returned from EncodingEventSubscriber associated with |stream_id|.
+ // returned from EncodingEventSubscriber. |is_audio| indicates whether the
+ // events are from an audio or video stream.
//
// Returns |true| if serialization is successful. This function
// returns |false| if the serialized string will exceed |kMaxSerializedsize|.
@@ -45,7 +46,7 @@ class LogSerializer {
// calling |GetSerializedString()|.
//
// See .cc file for format specification.
- bool SerializeEventsForStream(const int stream_id,
+ bool SerializeEventsForStream(bool is_audio,
const FrameEventMap& frame_events,
const PacketEventMap& packet_events,
const RtpTimestamp first_rtp_timestamp);
« no previous file with comments | « chrome/test/data/extensions/api_test/cast_streaming/common.js ('k') | media/cast/logging/log_serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698