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

Unified Diff: chromecast/renderer/media/key_systems_cast.cc

Issue 2712983004: Simplify/Cleanup MediaClient (Closed)
Patch Set: Fix test leak Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/renderer/media/key_systems_cast.h ('k') | components/cdm/renderer/android_key_systems.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/media/key_systems_cast.cc
diff --git a/chromecast/renderer/key_systems_cast.cc b/chromecast/renderer/media/key_systems_cast.cc
similarity index 93%
rename from chromecast/renderer/key_systems_cast.cc
rename to chromecast/renderer/media/key_systems_cast.cc
index 8ea79eb84c8ebf2412f7602f7fec9d006ad7622e..1e297151fd06ad7a88211ba6ce294a8289b87e62 100644
--- a/chromecast/renderer/key_systems_cast.cc
+++ b/chromecast/renderer/media/key_systems_cast.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chromecast/renderer/key_systems_cast.h"
+#include "chromecast/renderer/media/key_systems_cast.h"
#include <string>
@@ -16,7 +16,7 @@
#include "media/base/key_system_properties.h"
#include "media/media_features.h"
-#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
+#include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
using ::media::EmeConfigRule;
using ::media::EmeFeatureSupport;
@@ -26,15 +26,14 @@ using ::media::EmeSessionTypeSupport;
using ::media::SupportedCodecs;
namespace chromecast {
-namespace shell {
+namespace media {
namespace {
#if defined(PLAYREADY_CDM_AVAILABLE)
class PlayReadyKeySystemProperties : public ::media::KeySystemProperties {
public:
explicit PlayReadyKeySystemProperties(bool persistent_license_support)
- : persistent_license_support_(persistent_license_support) {
- }
+ : persistent_license_support_(persistent_license_support) {}
std::string GetKeySystemName() const override {
return media::kChromecastPlayreadyKeySystem;
@@ -62,7 +61,7 @@ class PlayReadyKeySystemProperties : public ::media::KeySystemProperties {
EmeSessionTypeSupport GetPersistentLicenseSessionSupport() const override {
return persistent_license_support_ ? EmeSessionTypeSupport::SUPPORTED
- : EmeSessionTypeSupport::NOT_SUPPORTED;
+ : EmeSessionTypeSupport::NOT_SUPPORTED;
}
EmeSessionTypeSupport GetPersistentReleaseMessageSessionSupport()
@@ -113,7 +112,7 @@ void AddChromecastKeySystems(
codecs |= ::media::EME_CODEC_MP4_HEVC;
#endif
key_systems_properties->emplace_back(new cdm::WidevineKeySystemProperties(
- codecs, // Regular codecs.
+ codecs, // Regular codecs.
Robustness::HW_SECURE_ALL, // Max audio robustness.
Robustness::HW_SECURE_ALL, // Max video robustness.
enable_persistent_license_support
@@ -127,5 +126,5 @@ void AddChromecastKeySystems(
#endif // defined(WIDEVINE_CDM_AVAILABLE)
}
-} // namespace shell
+} // namespace media
} // namespace chromecast
« no previous file with comments | « chromecast/renderer/media/key_systems_cast.h ('k') | components/cdm/renderer/android_key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698