| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SUPPORTED_CDM_VERSIONS_H_ | 5 #include "media/cdm/supported_cdm_versions.h" |
| 6 #define MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_ | |
| 7 | 6 |
| 7 #include "base/basictypes.h" |
| 8 #include "media/cdm/api/content_decryption_module.h" | 8 #include "media/cdm/api/content_decryption_module.h" |
| 9 | 9 |
| 10 namespace media { | 10 namespace media { |
| 11 | 11 |
| 12 bool IsSupportedCdmModuleVersion(int version) { | 12 bool IsSupportedCdmModuleVersion(int version) { |
| 13 switch (version) { | 13 switch (version) { |
| 14 // Latest. | 14 // Latest. |
| 15 case CDM_MODULE_VERSION: | 15 case CDM_MODULE_VERSION: |
| 16 return true; | 16 return true; |
| 17 default: | 17 default: |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 // Supported versions in decreasing order. | 41 // Supported versions in decreasing order. |
| 42 case cdm::Host_8::kVersion: | 42 case cdm::Host_8::kVersion: |
| 43 case cdm::Host_7::kVersion: | 43 case cdm::Host_7::kVersion: |
| 44 return true; | 44 return true; |
| 45 default: | 45 default: |
| 46 return false; | 46 return false; |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 } // namespace media | 50 } // namespace media |
| 51 | |
| 52 #endif // MEDIA_CDM_SUPPORTED_CDM_VERSIONS_H_ | |
| OLD | NEW |