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

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

Issue 1160983002: Allows support for persistent session types in BrowserCdm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes session_type TODO Created 5 years, 6 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
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 14 matching lines...) Expand all
25 const std::string& key_system_name, 25 const std::string& key_system_name,
26 std::vector<::media::KeySystemInfo>* key_systems_info) { 26 std::vector<::media::KeySystemInfo>* key_systems_info) {
27 ::media::KeySystemInfo info; 27 ::media::KeySystemInfo info;
28 info.key_system = key_system_name; 28 info.key_system = key_system_name;
29 info.supported_init_data_types = ::media::kInitDataTypeMaskCenc; 29 info.supported_init_data_types = ::media::kInitDataTypeMaskCenc;
30 info.supported_codecs = 30 info.supported_codecs =
31 ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1; 31 ::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1;
32 info.max_audio_robustness = ::media::EmeRobustness::EMPTY; 32 info.max_audio_robustness = ::media::EmeRobustness::EMPTY;
33 info.max_video_robustness = ::media::EmeRobustness::EMPTY; 33 info.max_video_robustness = ::media::EmeRobustness::EMPTY;
34 info.persistent_license_support = 34 info.persistent_license_support =
35 ::media::EmeSessionTypeSupport::NOT_SUPPORTED; 35 ::media::EmeSessionTypeSupport::SUPPORTED;
ddorwin 2015/05/28 23:51:50 Is all the implementation ready? Perhaps this shou
gunsch 2015/05/28 23:59:12 Well we're certainly not shipping anything between
36 info.persistent_release_message_support = 36 info.persistent_release_message_support =
37 ::media::EmeSessionTypeSupport::NOT_SUPPORTED; 37 ::media::EmeSessionTypeSupport::NOT_SUPPORTED;
38 info.persistent_state_support = ::media::EmeFeatureSupport::ALWAYS_ENABLED; 38 info.persistent_state_support = ::media::EmeFeatureSupport::ALWAYS_ENABLED;
39 info.distinctive_identifier_support = 39 info.distinctive_identifier_support =
40 ::media::EmeFeatureSupport::ALWAYS_ENABLED; 40 ::media::EmeFeatureSupport::ALWAYS_ENABLED;
41 key_systems_info->push_back(info); 41 key_systems_info->push_back(info);
42 } 42 }
43 43
44 void AddChromecastKeySystems( 44 void AddChromecastKeySystems(
45 std::vector<::media::KeySystemInfo>* key_systems_info) { 45 std::vector<::media::KeySystemInfo>* key_systems_info) {
(...skipping 17 matching lines...) Expand all
63 #endif // defined(WIDEVINE_CDM_AVAILABLE) 63 #endif // defined(WIDEVINE_CDM_AVAILABLE)
64 64
65 #if defined(PLAYREADY_CDM_AVAILABLE) 65 #if defined(PLAYREADY_CDM_AVAILABLE)
66 AddKeySystemWithCodecs(media::kChromecastPlayreadyKeySystem, 66 AddKeySystemWithCodecs(media::kChromecastPlayreadyKeySystem,
67 key_systems_info); 67 key_systems_info);
68 #endif // defined(PLAYREADY_CDM_AVAILABLE) 68 #endif // defined(PLAYREADY_CDM_AVAILABLE)
69 } 69 }
70 70
71 } // namespace shell 71 } // namespace shell
72 } // namespace chromecast 72 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698