OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/cdm/renderer/widevine_key_systems.h" | 5 #include "components/cdm/renderer/widevine_key_systems.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "media/base/eme_constants.h" | 11 #include "media/base/eme_constants.h" |
12 | 12 |
13 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 13 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
14 | 14 |
15 #if defined(WIDEVINE_CDM_AVAILABLE) | 15 #if defined(ENABLE_WIDEVINE_CDM) |
16 | 16 |
17 using media::KeySystemInfo; | 17 using media::KeySystemInfo; |
18 using media::SupportedCodecs; | 18 using media::SupportedCodecs; |
19 | 19 |
20 namespace cdm { | 20 namespace cdm { |
21 | 21 |
22 // Return |name|'s parent key system. | 22 // Return |name|'s parent key system. |
23 static std::string GetDirectParentName(std::string name) { | 23 static std::string GetDirectParentName(std::string name) { |
24 size_t last_period = name.find_last_of('.'); | 24 size_t last_period = name.find_last_of('.'); |
25 DCHECK_GT(last_period, 0u); | 25 DCHECK_GT(last_period, 0u); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 #if defined(ENABLE_PEPPER_CDMS) | 63 #if defined(ENABLE_PEPPER_CDMS) |
64 info.pepper_type = kWidevineCdmPluginMimeType; | 64 info.pepper_type = kWidevineCdmPluginMimeType; |
65 #endif // defined(ENABLE_PEPPER_CDMS) | 65 #endif // defined(ENABLE_PEPPER_CDMS) |
66 | 66 |
67 concrete_key_systems->push_back(info); | 67 concrete_key_systems->push_back(info); |
68 } | 68 } |
69 | 69 |
70 } // namespace cdm | 70 } // namespace cdm |
71 | 71 |
72 #endif // defined(WIDEVINE_CDM_AVAILABLE) | 72 #endif // defined(ENABLE_WIDEVINE_CDM) |
OLD | NEW |