| 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 "chromecast/renderer/key_systems_cast.h" | 5 #include "chromecast/renderer/key_systems_cast.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const std::string& requested_robustness) const override { | 51 const std::string& requested_robustness) const override { |
| 52 return requested_robustness.empty() ? EmeConfigRule::SUPPORTED | 52 return requested_robustness.empty() ? EmeConfigRule::SUPPORTED |
| 53 : EmeConfigRule::NOT_SUPPORTED; | 53 : EmeConfigRule::NOT_SUPPORTED; |
| 54 } | 54 } |
| 55 | 55 |
| 56 EmeSessionTypeSupport GetPersistentLicenseSessionSupport() const override { | 56 EmeSessionTypeSupport GetPersistentLicenseSessionSupport() const override { |
| 57 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
| 58 return EmeSessionTypeSupport::NOT_SUPPORTED; | 58 return EmeSessionTypeSupport::NOT_SUPPORTED; |
| 59 #else | 59 #else |
| 60 return persistent_license_support_ ? EmeSessionTypeSupport::SUPPORTED | 60 return persistent_license_support_ ? EmeSessionTypeSupport::SUPPORTED |
| 61 : EmeSessionType::NOT_SUPPORTED; | 61 : EmeSessionTypeSupport::NOT_SUPPORTED; |
| 62 #endif | 62 #endif |
| 63 } | 63 } |
| 64 | 64 |
| 65 EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() | 65 EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport() |
| 66 const override { | 66 const override { |
| 67 return EmeSessionTypeSupport::NOT_SUPPORTED; | 67 return EmeSessionTypeSupport::NOT_SUPPORTED; |
| 68 } | 68 } |
| 69 | 69 |
| 70 EmeFeatureSupport GetPersistentStateSupport() const override { | 70 EmeFeatureSupport GetPersistentStateSupport() const override { |
| 71 return EmeFeatureSupport::ALWAYS_ENABLED; | 71 return EmeFeatureSupport::ALWAYS_ENABLED; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-license. | 105 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-license. |
| 106 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-release-message. | 106 EmeSessionTypeSupport::NOT_SUPPORTED, // persistent-release-message. |
| 107 // Note: On Chromecast, all CDMs may have persistent state. | 107 // Note: On Chromecast, all CDMs may have persistent state. |
| 108 EmeFeatureSupport::ALWAYS_ENABLED, // Persistent state. | 108 EmeFeatureSupport::ALWAYS_ENABLED, // Persistent state. |
| 109 EmeFeatureSupport::ALWAYS_ENABLED)); // Distinctive identifier. | 109 EmeFeatureSupport::ALWAYS_ENABLED)); // Distinctive identifier. |
| 110 #endif // defined(WIDEVINE_CDM_AVAILABLE) | 110 #endif // defined(WIDEVINE_CDM_AVAILABLE) |
| 111 } | 111 } |
| 112 | 112 |
| 113 } // namespace shell | 113 } // namespace shell |
| 114 } // namespace chromecast | 114 } // namespace chromecast |
| OLD | NEW |