Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Side by Side Diff: media/cdm/supported_cdm_versions.cc

Issue 2280433002: Remove CDM_7 support (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 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 #include "media/cdm/supported_cdm_versions.h" 5 #include "media/cdm/supported_cdm_versions.h"
6 6
7 #include "media/cdm/api/content_decryption_module.h" 7 #include "media/cdm/api/content_decryption_module.h"
8 8
9 namespace media { 9 namespace media {
10 10
11 bool IsSupportedCdmModuleVersion(int version) { 11 bool IsSupportedCdmModuleVersion(int version) {
12 switch (version) { 12 switch (version) {
13 // Latest. 13 // Latest.
14 case CDM_MODULE_VERSION: 14 case CDM_MODULE_VERSION:
15 return true; 15 return true;
16 default: 16 default:
17 return false; 17 return false;
18 } 18 }
19 } 19 }
20 20
21 bool IsSupportedCdmInterfaceVersion(int version) { 21 bool IsSupportedCdmInterfaceVersion(int version) {
22 static_assert(cdm::ContentDecryptionModule::kVersion == 22 static_assert(cdm::ContentDecryptionModule::kVersion ==
23 cdm::ContentDecryptionModule_8::kVersion, 23 cdm::ContentDecryptionModule_8::kVersion,
24 "update the code below"); 24 "update the code below");
25 switch (version) { 25 switch (version) {
26 // Supported versions in decreasing order. 26 // Supported versions in decreasing order.
27 case cdm::ContentDecryptionModule_8::kVersion: 27 case cdm::ContentDecryptionModule_8::kVersion:
28 case cdm::ContentDecryptionModule_7::kVersion:
29 return true; 28 return true;
30 default: 29 default:
31 return false; 30 return false;
32 } 31 }
33 } 32 }
34 33
35 bool IsSupportedCdmHostVersion(int version) { 34 bool IsSupportedCdmHostVersion(int version) {
36 static_assert(cdm::ContentDecryptionModule::Host::kVersion == 35 static_assert(cdm::ContentDecryptionModule::Host::kVersion ==
37 cdm::ContentDecryptionModule_8::Host::kVersion, 36 cdm::ContentDecryptionModule_8::Host::kVersion,
38 "update the code below"); 37 "update the code below");
39 switch (version) { 38 switch (version) {
40 // Supported versions in decreasing order. 39 // Supported versions in decreasing order.
41 case cdm::Host_8::kVersion: 40 case cdm::Host_8::kVersion:
42 case cdm::Host_7::kVersion:
43 return true; 41 return true;
44 default: 42 default:
45 return false; 43 return false;
46 } 44 }
47 } 45 }
48 46
49 } // namespace media 47 } // namespace media
OLDNEW
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698