OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 6 #define MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "media/cdm/api/content_decryption_module.h" | 11 #include "media/cdm/api/content_decryption_module.h" |
10 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.h" | 12 #include "media/cdm/ppapi/external_clear_key/clear_key_cdm_common.h" |
11 | 13 |
12 namespace media { | 14 namespace media { |
13 | 15 |
14 class CdmVideoDecoder { | 16 class CdmVideoDecoder { |
15 public: | 17 public: |
16 virtual ~CdmVideoDecoder() {} | 18 virtual ~CdmVideoDecoder() {} |
17 virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0; | 19 virtual bool Initialize(const cdm::VideoDecoderConfig& config) = 0; |
(...skipping 16 matching lines...) Expand all Loading... |
34 | 36 |
35 // Initializes appropriate video decoder based on GYP flags and the value of | 37 // Initializes appropriate video decoder based on GYP flags and the value of |
36 // |config.codec|. Returns a scoped_ptr containing a non-null initialized | 38 // |config.codec|. Returns a scoped_ptr containing a non-null initialized |
37 // CdmVideoDecoder* upon success. | 39 // CdmVideoDecoder* upon success. |
38 scoped_ptr<CdmVideoDecoder> CreateVideoDecoder( | 40 scoped_ptr<CdmVideoDecoder> CreateVideoDecoder( |
39 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config); | 41 ClearKeyCdmHost* host, const cdm::VideoDecoderConfig& config); |
40 | 42 |
41 } // namespace media | 43 } // namespace media |
42 | 44 |
43 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ | 45 #endif // MEDIA_CDM_PPAPI_EXTERNAL_CLEAR_KEY_CDM_VIDEO_DECODER_H_ |
OLD | NEW |