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

Side by Side Diff: media/cdm/key_system_names.h

Issue 79903002: Add decrypt-only external clear key browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/media/encrypted_media_utils.js ('k') | media/cdm/key_system_names.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_CDM_KEY_SYSTEM_NAMES_H_ 5 #ifndef MEDIA_CDM_KEY_SYSTEM_NAMES_H_
6 #define MEDIA_CDM_KEY_SYSTEM_NAMES_H_ 6 #define MEDIA_CDM_KEY_SYSTEM_NAMES_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 // TODO(jrummell): Change other uses of Clear Key to use this common value. 14 // TODO(jrummell): Change other uses of Clear Key to use this common value.
15 15
16 // The key system names for Clear Key. 16 // The key system names for Clear Key.
17 MEDIA_EXPORT extern const char kPrefixedClearKey[]; 17 MEDIA_EXPORT extern const char kPrefixedClearKey[];
18 MEDIA_EXPORT extern const char kUnprefixedClearKey[]; 18 MEDIA_EXPORT extern const char kUnprefixedClearKey[];
19 19
20 // The key system name for External Clear Key. 20 // The key system name for External Clear Key.
21 MEDIA_EXPORT extern const char kExternalClearKey[]; 21 MEDIA_EXPORT extern const char kExternalClearKey[];
22 22
23 // Returns true if |key_system| is Clear Key, false otherwise. 23 // Returns true if |key_system| is Clear Key, false otherwise.
24 MEDIA_EXPORT inline bool IsClearKey(const std::string& key_system) { 24 MEDIA_EXPORT inline bool IsClearKey(const std::string& key_system) {
25 return key_system == kPrefixedClearKey || key_system == kUnprefixedClearKey; 25 return key_system == kPrefixedClearKey || key_system == kUnprefixedClearKey;
26 } 26 }
27 27
28 // Returns true if |key_system| is External Clear Key, false otherwise. 28 // Returns true if |key_system| is External Clear Key, false otherwise.
29 MEDIA_EXPORT inline bool IsExternalClearKey(const std::string& key_system) { 29 MEDIA_EXPORT bool IsExternalClearKey(const std::string& key_system);
30 return key_system == kExternalClearKey;
31 }
32 30
33 } // namespace media 31 } // namespace media
34 32
35 #endif // MEDIA_CDM_KEY_SYSTEM_NAMES_H_ 33 #endif // MEDIA_CDM_KEY_SYSTEM_NAMES_H_
OLDNEW
« no previous file with comments | « chrome/test/data/media/encrypted_media_utils.js ('k') | media/cdm/key_system_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698