Index: media/cast/video_receiver/video_decoder.h |
diff --git a/media/cast/video_receiver/video_decoder.h b/media/cast/video_receiver/video_decoder.h |
index abf1955eb996c8c2e5afe8961a14a18e9728be2f..20368327786992397b4c45fb2d767b03d6c8fdae 100644 |
--- a/media/cast/video_receiver/video_decoder.h |
+++ b/media/cast/video_receiver/video_decoder.h |
@@ -21,8 +21,6 @@ class VideoDecoder : public base::RefCountedThreadSafe<VideoDecoder>{ |
public: |
VideoDecoder(scoped_refptr<CastThread> cast_thread, |
const VideoReceiverConfig& video_config); |
- ~VideoDecoder(); |
- |
// Decode a video frame. Decoded (raw) frame will be returned in the |
// frame_decoded_callback. |
@@ -31,7 +29,12 @@ class VideoDecoder : public base::RefCountedThreadSafe<VideoDecoder>{ |
const VideoFrameDecodedCallback& frame_decoded_callback, |
base::Closure frame_release_callback); |
+ protected: |
+ virtual ~VideoDecoder(); |
+ |
private: |
+ friend class base::RefCountedThreadSafe<VideoDecoder>; |
+ |
void DecodeFrame(const EncodedVideoFrame* encoded_frame, |
const base::TimeTicks render_time, |
const VideoFrameDecodedCallback& frame_decoded_callback); |