| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ppapi/cpp/dev/video_decoder_dev.h" | 5 #include "ppapi/cpp/dev/video_decoder_dev.h" |
| 6 | 6 |
| 7 #include "ppapi/c/dev/ppb_video_decoder_dev.h" | 7 #include "ppapi/c/dev/ppb_video_decoder_dev.h" |
| 8 #include "ppapi/c/dev/ppp_video_decoder_dev.h" | 8 #include "ppapi/c/dev/ppp_video_decoder_dev.h" |
| 9 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 10 #include "ppapi/cpp/common.h" | 10 #include "ppapi/cpp/common.h" |
| 11 #include "ppapi/cpp/instance.h" | 11 #include "ppapi/cpp/instance.h" |
| 12 #include "ppapi/cpp/module.h" | 12 #include "ppapi/cpp/module.h" |
| 13 #include "ppapi/cpp/module_impl.h" | 13 #include "ppapi/cpp/module_impl.h" |
| 14 | 14 |
| 15 using std::vector; | 15 using std::vector; |
| 16 | 16 |
| 17 namespace pp { | 17 namespace pp { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 template <> const char* interface_name<PPB_VideoDecoder_Dev>() { | 21 template <> const char* interface_name<PPB_VideoDecoder_Dev>() { |
| 22 return PPB_VIDEODECODER_DEV_INTERFACE; | 22 return PPB_VIDEODECODER_DEV_INTERFACE; |
| 23 } | 23 } |
| 24 | 24 |
| 25 } // namespace | 25 } // namespace |
| 26 | 26 |
| 27 VideoDecoder::VideoDecoder(const Instance* /* instance */, | 27 VideoDecoder::VideoDecoder(const Instance* /* instance */, |
| 28 const std::vector<uint32_t>& /* config */, | 28 const std::vector<uint32_t>& /* config */, |
| 29 CompletionCallback /* callback */, |
| 29 Client* client) | 30 Client* client) |
| 30 : client_(client) { | 31 : client_(client) { |
| 31 if (!has_interface<PPB_VideoDecoder_Dev>()) | 32 if (!has_interface<PPB_VideoDecoder_Dev>()) |
| 32 return; | 33 return; |
| 33 // TODO(vmr): Implement. | 34 // TODO(vmr): Implement. |
| 34 } | 35 } |
| 35 | 36 |
| 36 VideoDecoder::~VideoDecoder() {} | 37 VideoDecoder::~VideoDecoder() {} |
| 37 | 38 |
| 38 vector<uint32_t> VideoDecoder::GetConfigs( | 39 vector<uint32_t> VideoDecoder::GetConfigs( |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 78 } |
| 78 | 79 |
| 79 bool VideoDecoder::Abort(CompletionCallback /* callback */) { | 80 bool VideoDecoder::Abort(CompletionCallback /* callback */) { |
| 80 // TODO(vmr): Implement. | 81 // TODO(vmr): Implement. |
| 81 if (!has_interface<PPB_VideoDecoder_Dev>()) | 82 if (!has_interface<PPB_VideoDecoder_Dev>()) |
| 82 return false; | 83 return false; |
| 83 return true; | 84 return true; |
| 84 } | 85 } |
| 85 | 86 |
| 86 } // namespace pp | 87 } // namespace pp |
| OLD | NEW |