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

Unified Diff: ppapi/proxy/ppb_video_decoder_proxy.cc

Issue 9053003: Convert ppapi/shared to use TrackedCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 8 years, 12 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: ppapi/proxy/ppb_video_decoder_proxy.cc
diff --git a/ppapi/proxy/ppb_video_decoder_proxy.cc b/ppapi/proxy/ppb_video_decoder_proxy.cc
index 850ae6e51db0092b1f2e229a700490ed72df04b6..3f5cdc418530b6f915656d7511799c2f8bfc8ef9 100644
--- a/ppapi/proxy/ppb_video_decoder_proxy.cc
+++ b/ppapi/proxy/ppb_video_decoder_proxy.cc
@@ -23,7 +23,7 @@ using ppapi::thunk::PPB_VideoDecoder_API;
namespace ppapi {
namespace proxy {
-class VideoDecoder : public Resource, public PPB_VideoDecoder_Shared {
+class VideoDecoder : public PPB_VideoDecoder_Shared {
public:
// You must call Init() before using this class.
explicit VideoDecoder(const HostResource& resource);
@@ -33,9 +33,6 @@ class VideoDecoder : public Resource, public PPB_VideoDecoder_Shared {
PP_Resource graphics_context,
PP_VideoDecoder_Profile profile);
- // Resource overrides.
- virtual PPB_VideoDecoder_API* AsPPB_VideoDecoder_API() OVERRIDE;
-
// PPB_VideoDecoder_API implementation.
virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
PP_CompletionCallback callback) OVERRIDE;
@@ -59,16 +56,13 @@ class VideoDecoder : public Resource, public PPB_VideoDecoder_Shared {
DISALLOW_COPY_AND_ASSIGN(VideoDecoder);
};
-VideoDecoder::VideoDecoder(const HostResource& decoder) : Resource(decoder) {
+VideoDecoder::VideoDecoder(const HostResource& decoder)
+ : PPB_VideoDecoder_Shared(decoder) {
}
VideoDecoder::~VideoDecoder() {
}
-PPB_VideoDecoder_API* VideoDecoder::AsPPB_VideoDecoder_API() {
- return this;
-}
-
int32_t VideoDecoder::Decode(
const PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
PP_CompletionCallback callback) {

Powered by Google App Engine
This is Rietveld 408576698