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

Side by Side Diff: chromecast/shell/renderer/key_systems_cast.cc

Issue 568243002: Adds initial key systems support for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address last comments Created 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromecast/shell/renderer/key_systems_cast.h"
6
7 #include <string>
8
9 #include "base/command_line.h"
10 #include "base/logging.h"
11 #include "chromecast/media/base/key_systems_common.h"
12 #include "components/cdm/renderer/widevine_key_systems.h"
13 #include "content/public/common/eme_codec.h"
14
15 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR.
16
17 namespace {
18
19 #if defined(PLAYREADY_CDM_AVAILABLE)
20 void AddKeySystemWithCodecs(
21 const std::string& key_system_name,
22 std::vector<content::KeySystemInfo>* concrete_key_systems) {
23 content::KeySystemInfo info(key_system_name);
24 info.supported_codecs = content::EME_CODEC_MP4_ALL;
25 concrete_key_systems->push_back(info);
26 }
27 #endif // defined(PLAYREADY_CDM_AVAILABLE)
28
29 } // namespace
30
31 namespace chromecast {
32 namespace shell {
33
34 void AddChromecastKeySystems(
35 std::vector<content::KeySystemInfo>* key_systems_info) {
36 #if defined(WIDEVINE_CDM_AVAILABLE)
37 AddWidevineWithCodecs(cdm::WIDEVINE,
38 content::EME_CODEC_MP4_ALL,
39 key_systems_info);
40 #endif
41
42 #if defined(PLAYREADY_CDM_AVAILABLE)
43 AddKeySystemWithCodecs(kChromecastPlayreadyKeySystem, key_systems_info);
44 #endif
45 }
46
47 } // namespace shell
48 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/shell/renderer/key_systems_cast.h ('k') | chromecast/shell/renderer/key_systems_cast_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698