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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.h

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 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
Index: chrome/renderer/extensions/cast_streaming_native_handler.h
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.h b/chrome/renderer/extensions/cast_streaming_native_handler.h
index 52e1b97d1881948b52d284328811b3f92f506c3b..c567378629ef249c0dd1a868f95437b40f604070 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.h
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.h
@@ -16,6 +16,10 @@
class CastRtpStream;
class CastUdpTransport;
+namespace base {
+class DictionaryValue;
+}
+
namespace extensions {
class ChromeV8Context;
@@ -64,6 +68,8 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
void CallGetRawEventsCallback(int transport_id,
scoped_ptr<std::string> raw_events);
+ void CallGetStatsCallback(int transport_id,
+ scoped_ptr<base::DictionaryValue> stats);
// Gets the RTP stream or UDP transport indexed by an ID.
// If not found, returns NULL and throws a V8 exception.
@@ -86,6 +92,7 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
linked_ptr<extensions::ScopedPersistent<v8::Function> > >
RtpStreamCallbackMap;
RtpStreamCallbackMap get_raw_events_callbacks_;
+ RtpStreamCallbackMap get_stats_callbacks_;
DISALLOW_COPY_AND_ASSIGN(CastStreamingNativeHandler);
};

Powered by Google App Engine
This is Rietveld 408576698