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

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

Issue 173713004: Cast: Plumb raw event logs to cast extension, install EncodingEventSubscriber on CastSessionDelegat… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix subscriber leak 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/chrome_renderer.gypi ('k') | chrome/renderer/media/cast_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session.h
diff --git a/chrome/renderer/media/cast_session.h b/chrome/renderer/media/cast_session.h
index 63278b54f25ff901364ccf9b0148c11371e8df2b..720821fb575054017e9a00fbeed13ba8545b3033 100644
--- a/chrome/renderer/media/cast_session.h
+++ b/chrome/renderer/media/cast_session.h
@@ -41,6 +41,7 @@ class CastSession : public base::RefCounted<CastSession> {
base::Callback<void(const scoped_refptr<media::cast::FrameInput>&)>
FrameInputAvailableCallback;
typedef base::Callback<void(const std::vector<char>&)> SendPacketCallback;
+ typedef base::Callback<void(scoped_ptr<std::string>)> EventLogsCallback;
CastSession();
@@ -56,6 +57,9 @@ 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);
+
private:
friend class base::RefCounted<CastSession>;
virtual ~CastSession();
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/media/cast_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698