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

Unified Diff: chrome/renderer/media/cast_rtp_stream.h

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include 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 9238e404da1996bd345d7e0e35ca326174b23d04..a974c277f9578f6705c56b2b7b54c015c28f22b4 100644
--- a/chrome/renderer/media/cast_rtp_stream.h
+++ b/chrome/renderer/media/cast_rtp_stream.h
@@ -15,6 +15,10 @@
#include "base/memory/weak_ptr.h"
#include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
+namespace base {
+class DictionaryValue;
+}
+
class CastAudioSink;
class CastSession;
class CastVideoSink;
@@ -125,6 +129,11 @@ class CastRtpStream {
void GetRawEvents(
const base::Callback<void(scoped_ptr<std::string>)>& callback);
+ // Get stats in DictionaryValue format and invokves |callback| with
+ // the result.
+ void GetStats(const base::Callback<void(
+ scoped_ptr<base::DictionaryValue>)>& 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