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

Side by Side Diff: media/base/key_system_info.cc

Issue 923283002: Implement checks for distinctiveIdentifier and persistentState in requestMediaKeySystemAccess(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "media/base/key_system_info.h" 5 #include "media/base/key_system_info.h"
6 6
7 namespace media { 7 namespace media {
8 8
9 KeySystemInfo::KeySystemInfo()
jrummell 2015/02/14 01:28:35 Is this required? I don't see any user of it (alth
ddorwin 2015/02/17 20:56:47 If so, we should consider eliminating the other on
sandersd (OOO until July 31) 2015/02/18 23:41:17 Yup, it's for hash_map.
sandersd (OOO until July 31) 2015/02/18 23:41:17 Done.
10 : supported_init_data_types(EME_INIT_DATA_TYPE_NONE),
11 supported_codecs(EME_CODEC_NONE),
12 persistent_state_requirement(EME_REQUIREMENT_REQUIRED),
13 distinctive_identifier_requirement(EME_REQUIREMENT_REQUIRED),
14 supported_session_types(EME_SESSION_TYPE_NONE),
15 use_aes_decryptor(false) {
16 }
17
9 KeySystemInfo::KeySystemInfo(const std::string& key_system) 18 KeySystemInfo::KeySystemInfo(const std::string& key_system)
10 : key_system(key_system), 19 : key_system(key_system),
11 supported_init_data_types(EME_INIT_DATA_TYPE_NONE), 20 supported_init_data_types(EME_INIT_DATA_TYPE_NONE),
12 supported_codecs(EME_CODEC_NONE), 21 supported_codecs(EME_CODEC_NONE),
22 persistent_state_requirement(EME_REQUIREMENT_REQUIRED),
ddorwin 2015/02/17 20:56:47 Default to the worst case: For this one, not_allow
sandersd (OOO until July 31) 2015/02/18 23:41:17 Changed to an illegal value with DCHECKS. (For fut
23 distinctive_identifier_requirement(EME_REQUIREMENT_REQUIRED),
24 supported_session_types(EME_SESSION_TYPE_NONE),
13 use_aes_decryptor(false) { 25 use_aes_decryptor(false) {
14 } 26 }
15 27
16 KeySystemInfo::~KeySystemInfo() {
17 }
18
19 } // namespace media 28 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698