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

Unified Diff: chrome/renderer/media/cast_session_delegate.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: pass presubmit 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/renderer/media/cast_session.cc ('k') | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session_delegate.h
diff --git a/chrome/renderer/media/cast_session_delegate.h b/chrome/renderer/media/cast_session_delegate.h
index 1f59e9daa51f6af985964e263a3d2fdcc88f90ee..9d08882474785b871b96905dfeba50d04fbdbd9a 100644
--- a/chrome/renderer/media/cast_session_delegate.h
+++ b/chrome/renderer/media/cast_session_delegate.h
@@ -5,9 +5,11 @@
#ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
#define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
+#include <map>
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/linked_ptr.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
@@ -58,8 +60,8 @@ class CastSessionDelegate {
void StartUDP(const net::IPEndPoint& local_endpoint,
const net::IPEndPoint& remote_endpoint);
- // Returns raw event logs in serialized format since last call.
- void GetEventLogsAndReset(const EventLogsCallback& callback);
+ void ToggleLogging(bool is_audio, bool enable);
+ void GetEventLogsAndReset(bool is_audio, const EventLogsCallback& callback);
protected:
// Callback with the result of the initialization.
@@ -90,13 +92,13 @@ class CastSessionDelegate {
FrameInputAvailableCallback audio_frame_input_available_callback_;
FrameInputAvailableCallback video_frame_input_available_callback_;
- scoped_ptr<media::cast::EncodingEventSubscriber> audio_event_subscriber_;
- scoped_ptr<media::cast::EncodingEventSubscriber> video_event_subscriber_;
-
net::IPEndPoint local_endpoint_;
net::IPEndPoint remote_endpoint_;
bool transport_configured_;
+ scoped_ptr<media::cast::EncodingEventSubscriber> audio_event_subscriber_;
+ scoped_ptr<media::cast::EncodingEventSubscriber> video_event_subscriber_;
+
// Proxy to the IO message loop.
scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
« no previous file with comments | « chrome/renderer/media/cast_session.cc ('k') | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698