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 |