| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/external_clear_key_key_system_properties.h" | 5 #include "components/cdm/renderer/external_clear_key_key_system_properties.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "media/base/eme_constants.h" | 8 #include "media/base/eme_constants.h" |
| 9 #include "ppapi/features/features.h" |
| 9 | 10 |
| 10 namespace cdm { | 11 namespace cdm { |
| 11 | 12 |
| 12 #if defined(ENABLE_PEPPER_CDMS) | 13 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 13 const char kExternalClearKeyPepperType[] = "application/x-ppapi-clearkey-cdm"; | 14 const char kExternalClearKeyPepperType[] = "application/x-ppapi-clearkey-cdm"; |
| 14 #endif | 15 #endif |
| 15 | 16 |
| 16 ExternalClearKeyProperties::ExternalClearKeyProperties( | 17 ExternalClearKeyProperties::ExternalClearKeyProperties( |
| 17 const std::string& key_system_name) | 18 const std::string& key_system_name) |
| 18 : key_system_name_(key_system_name) {} | 19 : key_system_name_(key_system_name) {} |
| 19 | 20 |
| 20 ExternalClearKeyProperties::~ExternalClearKeyProperties() {} | 21 ExternalClearKeyProperties::~ExternalClearKeyProperties() {} |
| 21 | 22 |
| 22 std::string ExternalClearKeyProperties::GetKeySystemName() const { | 23 std::string ExternalClearKeyProperties::GetKeySystemName() const { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 media::EmeFeatureSupport ExternalClearKeyProperties::GetPersistentStateSupport() | 74 media::EmeFeatureSupport ExternalClearKeyProperties::GetPersistentStateSupport() |
| 74 const { | 75 const { |
| 75 return media::EmeFeatureSupport::REQUESTABLE; | 76 return media::EmeFeatureSupport::REQUESTABLE; |
| 76 } | 77 } |
| 77 | 78 |
| 78 media::EmeFeatureSupport | 79 media::EmeFeatureSupport |
| 79 ExternalClearKeyProperties::GetDistinctiveIdentifierSupport() const { | 80 ExternalClearKeyProperties::GetDistinctiveIdentifierSupport() const { |
| 80 return media::EmeFeatureSupport::NOT_SUPPORTED; | 81 return media::EmeFeatureSupport::NOT_SUPPORTED; |
| 81 } | 82 } |
| 82 | 83 |
| 83 #if defined(ENABLE_PEPPER_CDMS) | 84 #if BUILDFLAG(ENABLE_PEPPER_CDMS) |
| 84 std::string ExternalClearKeyProperties::GetPepperType() const { | 85 std::string ExternalClearKeyProperties::GetPepperType() const { |
| 85 return kExternalClearKeyPepperType; | 86 return kExternalClearKeyPepperType; |
| 86 } | 87 } |
| 87 #endif | 88 #endif |
| 88 | 89 |
| 89 } // namespace cdm | 90 } // namespace cdm |
| OLD | NEW |