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

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

Issue 163553006: Cast: Refactoring Cast API's (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('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 ae7d244d1b8ed571677efba4359617e9f8ad9e47..15226bfc1b9ac0c3c2bbff3900e6387a04e606a4 100644
--- a/chrome/renderer/media/cast_session.h
+++ b/chrome/renderer/media/cast_session.h
@@ -21,7 +21,8 @@ class MessageLoopProxy;
namespace media {
class VideoFrame;
namespace cast {
-class FrameInput;
+class AudioFrameInput;
+class VideoFrameInput;
struct AudioSenderConfig;
struct VideoSenderConfig;
} // namespace cast
@@ -38,9 +39,10 @@ class CastSessionDelegate;
// CastSessionDelegate on the IO thread.
class CastSession : public base::RefCounted<CastSession> {
public:
- typedef
- base::Callback<void(const scoped_refptr<media::cast::FrameInput>&)>
- FrameInputAvailableCallback;
+ typedef base::Callback<void(const scoped_refptr<
+ media::cast::AudioFrameInput>&)> AudioFrameInputAvailableCallback;
+ typedef base::Callback<void(const scoped_refptr<
+ media::cast::VideoFrameInput>&)> VideoFrameInputAvailableCallback;
typedef base::Callback<void(const std::vector<char>&)> SendPacketCallback;
typedef base::Callback<void(scoped_ptr<std::string>)> EventLogsCallback;
typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> StatsCallback;
@@ -53,9 +55,9 @@ class CastSession : public base::RefCounted<CastSession> {
// media::cast::FrameInput will be given through the callback. The
// callback will be made on the main thread.
void StartAudio(const media::cast::AudioSenderConfig& config,
- const FrameInputAvailableCallback& callback);
+ const AudioFrameInputAvailableCallback& callback);
void StartVideo(const media::cast::VideoSenderConfig& config,
- const FrameInputAvailableCallback& callback);
+ const VideoFrameInputAvailableCallback& callback);
void StartUDP(const net::IPEndPoint& local_endpoint,
const net::IPEndPoint& remote_endpoint);
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | chrome/renderer/media/cast_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698