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

Unified Diff: chrome/renderer/media/cast_rtp_stream.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: Addressed kalman's comments 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
Index: chrome/renderer/media/cast_rtp_stream.h
diff --git a/chrome/renderer/media/cast_rtp_stream.h b/chrome/renderer/media/cast_rtp_stream.h
index f3a06c0e317108a6d55607a4da294acf1c845526..9238e404da1996bd345d7e0e35ca326174b23d04 100644
--- a/chrome/renderer/media/cast_rtp_stream.h
+++ b/chrome/renderer/media/cast_rtp_stream.h
@@ -117,6 +117,14 @@ class CastRtpStream {
// Stop encoding.
void Stop();
+ // Enables or disables logging for this stream.
+ void ToggleLogging(bool enable);
+
+ // Get serialized raw events for this stream and invokes |callback|
+ // with the result.
+ void GetRawEvents(
+ const base::Callback<void(scoped_ptr<std::string>)>& callback);
+
private:
// Return true if this track is an audio track. Return false if this
// track is a video track.

Powered by Google App Engine
This is Rietveld 408576698