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

Unified Diff: media/cast/video_receiver/video_decoder.h

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
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);
« no previous file with comments | « media/cast/video_receiver/codecs/vp8/vp8_decoder.cc ('k') | media/cast/video_receiver/video_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698