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

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

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: comments addressed Created 5 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 7528147ef7d722ed209ef5e4479aa5eb032fecbd..a2e688c8a7633160c92346f46827947d2fb8be40 100644
--- a/chrome/renderer/media/cast_session_delegate.h
+++ b/chrome/renderer/media/cast_session_delegate.h
@@ -43,6 +43,8 @@ class CastTransportSender;
// CastReceiverSessionDelegate.
class CastSessionDelegateBase {
public:
+ typedef base::Callback<void(const std::string&)> ErrorCallback;
+
CastSessionDelegateBase();
virtual ~CastSessionDelegateBase();
@@ -51,10 +53,12 @@ class CastSessionDelegateBase {
// Must be called before initialization of audio or video.
void StartUDP(const net::IPEndPoint& local_endpoint,
const net::IPEndPoint& remote_endpoint,
- scoped_ptr<base::DictionaryValue> options);
+ scoped_ptr<base::DictionaryValue> options,
+ const ErrorCallback& error_callback);
protected:
void StatusNotificationCB(
+ const ErrorCallback& error_callback,
media::cast::CastTransportStatus status);
virtual void ReceivePacket(scoped_ptr<media::cast::Packet> packet) = 0;
@@ -85,14 +89,14 @@ class CastSessionDelegate : public CastSessionDelegateBase {
media::cast::VideoFrameInput>&)> VideoFrameInputAvailableCallback;
typedef base::Callback<void(scoped_ptr<base::BinaryValue>)> EventLogsCallback;
typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> StatsCallback;
- typedef base::Callback<void(const std::string&)> ErrorCallback;
CastSessionDelegate();
~CastSessionDelegate() override;
void StartUDP(const net::IPEndPoint& local_endpoint,
const net::IPEndPoint& remote_endpoint,
- scoped_ptr<base::DictionaryValue> options);
+ scoped_ptr<base::DictionaryValue> options,
+ const ErrorCallback& error_callback);
// After calling StartAudio() or StartVideo() encoding of that media will
// begin as soon as data is delivered to its sink, if the second method is
« 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