Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ | |
| 6 #define WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "webkit/media/crypto/ppapi/content_decryption_module.h" | |
| 10 | |
| 11 namespace webkit_media { | |
| 12 | |
| 13 class VideoDecoder { | |
|
xhwang
2012/09/04 14:50:21
Media code try to avoid defining interface classes
| |
| 14 public: | |
| 15 virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0; | |
| 16 virtual bool DecodeFrame(const cdm::VideoFrame& compressed_frame, | |
| 17 cdm::VideoFrame* decompressed_frame) = 0; | |
| 18 | |
| 19 protected: | |
| 20 VideoDecoder() {} | |
| 21 virtual ~VideoDecoder() {} | |
| 22 | |
|
ddorwin
2012/09/02 21:39:08
private:
| |
| 23 DISALLOW_COPY_AND_ASSIGN(VideoDecoder); | |
| 24 }; | |
| 25 | |
| 26 } // namespace webkit_media | |
| 27 | |
| 28 #endif // WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ | |
| OLD | NEW |