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

Unified Diff: media/cast/cast_sender_impl.cc

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files Created 7 years, 3 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 | « media/cast/cast_sender_impl.h ('k') | media/cast/cast_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_sender_impl.cc
diff --git a/media/cast/cast_sender_impl.cc b/media/cast/cast_sender_impl.cc
index 76f2f997651453bae2f6f3c7e9df2dbc4d22dbc4..edefedd7f9ec9eafe9f0100cd1eaa445d877525b 100644
--- a/media/cast/cast_sender_impl.cc
+++ b/media/cast/cast_sender_impl.cc
@@ -55,7 +55,12 @@ class LocalFrameInput : public FrameInput {
audio_frame, recorded_time, callback));
}
+ protected:
+ virtual ~LocalFrameInput() {}
+
private:
+ friend class base::RefCountedThreadSafe<LocalFrameInput>;
+
scoped_refptr<CastThread> cast_thread_;
base::WeakPtr<AudioSender> audio_sender_;
base::WeakPtr<VideoSender> video_sender_;
@@ -100,8 +105,6 @@ class LocalCastSenderPacketReceiver : public PacketReceiver {
ssrc_of_audio_sender_(ssrc_of_audio_sender),
ssrc_of_video_sender_(ssrc_of_video_sender) {}
- virtual ~LocalCastSenderPacketReceiver() {}
-
virtual void ReceivedPacket(const uint8* packet,
int length,
const base::Closure callback) OVERRIDE {
@@ -132,7 +135,12 @@ class LocalCastSenderPacketReceiver : public PacketReceiver {
}
}
+ protected:
+ virtual ~LocalCastSenderPacketReceiver() {}
+
private:
+ friend class base::RefCountedThreadSafe<LocalCastSenderPacketReceiver>;
+
scoped_refptr<CastThread> cast_thread_;
base::WeakPtr<AudioSender> audio_sender_;
base::WeakPtr<VideoSender> video_sender_;
@@ -172,5 +180,13 @@ CastSenderImpl::CastSenderImpl(
CastSenderImpl::~CastSenderImpl() {}
+scoped_refptr<FrameInput> CastSenderImpl::frame_input() {
+ return frame_input_;
+}
+
+scoped_refptr<PacketReceiver> CastSenderImpl::packet_receiver() {
+ return packet_receiver_;
+}
+
} // namespace cast
} // namespace media
« no previous file with comments | « media/cast/cast_sender_impl.h ('k') | media/cast/cast_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698