Index: webkit/media/crypto/decoders/video_decoder.h |
diff --git a/webkit/media/crypto/decoders/video_decoder.h b/webkit/media/crypto/decoders/video_decoder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e00058f4d4429326837b7e7abe7b031dbdedd438 |
--- /dev/null |
+++ b/webkit/media/crypto/decoders/video_decoder.h |
@@ -0,0 +1,28 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ |
+#define WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "webkit/media/crypto/ppapi/content_decryption_module.h" |
+ |
+namespace webkit_media { |
+ |
+class VideoDecoder { |
xhwang
2012/09/04 14:50:21
Media code try to avoid defining interface classes
|
+ public: |
+ virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0; |
+ virtual bool DecodeFrame(const cdm::VideoFrame& compressed_frame, |
+ cdm::VideoFrame* decompressed_frame) = 0; |
+ |
+ protected: |
+ VideoDecoder() {} |
+ virtual ~VideoDecoder() {} |
+ |
ddorwin
2012/09/02 21:39:08
private:
|
+ DISALLOW_COPY_AND_ASSIGN(VideoDecoder); |
+}; |
+ |
+} // namespace webkit_media |
+ |
+#endif // WEBKIT_MEDIA_CRYPTO_DECODERS_VIDEO_DECODER_H_ |