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

Side by Side Diff: media/base/key_systems.h

Issue 1730383004: EME: Ensure that registered codecs match the MIME type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments to avoid the formatter combining lines. Created 4 years, 9 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
« no previous file with comments | « no previous file | media/base/key_systems.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef MEDIA_BASE_KEY_SYSTEMS_H_ 5 #ifndef MEDIA_BASE_KEY_SYSTEMS_H_
6 #define MEDIA_BASE_KEY_SYSTEMS_H_ 6 #define MEDIA_BASE_KEY_SYSTEMS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 #if defined(ENABLE_PEPPER_CDMS) 86 #if defined(ENABLE_PEPPER_CDMS)
87 // Returns the Pepper MIME type for |concrete_key_system|. 87 // Returns the Pepper MIME type for |concrete_key_system|.
88 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based. 88 // Returns empty string if |concrete_key_system| is unknown or not Pepper-based.
89 MEDIA_EXPORT std::string GetPepperType( 89 MEDIA_EXPORT std::string GetPepperType(
90 const std::string& concrete_key_system); 90 const std::string& concrete_key_system);
91 #endif 91 #endif
92 92
93 #if defined(UNIT_TEST) 93 #if defined(UNIT_TEST)
94 // Helper functions to add container/codec types for testing purposes. 94 // Helper functions to add container/codec types for testing purposes.
95 MEDIA_EXPORT void AddContainerMask(const std::string& container, uint32_t mask); 95 // Call AddCodecMask() first to ensure the mask values passed to
96 // AddMimeTypeCodecMask() already exist.
96 MEDIA_EXPORT void AddCodecMask(EmeMediaType media_type, 97 MEDIA_EXPORT void AddCodecMask(EmeMediaType media_type,
97 const std::string& codec, 98 const std::string& codec,
98 uint32_t mask); 99 uint32_t mask);
100 MEDIA_EXPORT void AddMimeTypeCodecMask(const std::string& mime_type,
101 uint32_t mask);
99 #endif // defined(UNIT_TEST) 102 #endif // defined(UNIT_TEST)
100 103
101 } // namespace media 104 } // namespace media
102 105
103 #endif // MEDIA_BASE_KEY_SYSTEMS_H_ 106 #endif // MEDIA_BASE_KEY_SYSTEMS_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698