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