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

Unified Diff: chrome/renderer/media/cast_session.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: 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_session.h
diff --git a/chrome/renderer/media/cast_session.h b/chrome/renderer/media/cast_session.h
index 720821fb575054017e9a00fbeed13ba8545b3033..e44cd595cb3887c794871bb0ebc5364d282da496 100644
--- a/chrome/renderer/media/cast_session.h
+++ b/chrome/renderer/media/cast_session.h
@@ -57,8 +57,14 @@ class CastSession : public base::RefCounted<CastSession> {
void StartUDP(const net::IPEndPoint& local_endpoint,
const net::IPEndPoint& remote_endpoint);
- // Get raw event logs and provide the results in |callback| on main thread.
- void GetEventLogsAndReset(const EventLogsCallback& callback);
+ // Creates an event subscriber for a stream with |stream_id|. The subscriber
+ // will process audio or video events depending on |is_audio|.
+ void StartLogging(const int stream_id, const bool is_audio);
+
+ // Returns raw event logs in serialized format for |stream_id| since
+ // last call and returns result in |callback|.
+ void GetEventLogsAndReset(const EventLogsCallback& callback,
+ const int stream_id);
private:
friend class base::RefCounted<CastSession>;

Powered by Google App Engine
This is Rietveld 408576698