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

Side by Side Diff: webkit/media/crypto/key_systems.h

Issue 15028015: Conditionally build support for Pepper-based CDMs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use AppendAscii() where possible. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « third_party/widevine/cdm/widevine_cdm_common.h ('k') | webkit/media/crypto/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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 5 #ifndef WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_
6 #define WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 6 #define WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 16 matching lines...) Expand all
27 const std::vector<std::string>& codecs, 27 const std::vector<std::string>& codecs,
28 const std::string& key_system); 28 const std::string& key_system);
29 29
30 // Returns a name for |key_system| suitable to UMA logging. 30 // Returns a name for |key_system| suitable to UMA logging.
31 std::string KeySystemNameForUMA(const std::string& key_system); 31 std::string KeySystemNameForUMA(const std::string& key_system);
32 std::string KeySystemNameForUMA(const WebKit::WebString& key_system); 32 std::string KeySystemNameForUMA(const WebKit::WebString& key_system);
33 33
34 // Returns whether AesDecryptor can be used for the given |key_system|. 34 // Returns whether AesDecryptor can be used for the given |key_system|.
35 bool CanUseAesDecryptor(const std::string& key_system); 35 bool CanUseAesDecryptor(const std::string& key_system);
36 36
37 // Returns the plugin type given a |key_system|. 37 #if defined(ENABLE_PEPPER_CDMS)
38 // Returns an empty string if no plugin type is found for |key_system|. 38 // Returns the Pepper MIME type for |key_system|.
39 std::string GetPluginType(const std::string& key_system); 39 // Returns an empty string if |key_system| is unknown or not Pepper-based.
40 std::string GetPepperType(const std::string& key_system);
41 #endif
40 42
41 } // namespace webkit_media 43 } // namespace webkit_media
42 44
43 #endif // WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_ 45 #endif // WEBKIT_MEDIA_CRYPTO_KEY_SYSTEMS_H_
OLDNEW
« no previous file with comments | « third_party/widevine/cdm/widevine_cdm_common.h ('k') | webkit/media/crypto/key_systems.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698