OLD | NEW |
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 CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ |
6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ | 6 #define CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 // TODO(ddorwin): Remove when AddKeySystems is removed. |
| 12 #include "content/public/renderer/key_system_info.h" |
11 | 13 |
12 namespace WebKit { | 14 namespace WebKit { |
13 class WebString; | 15 class WebString; |
14 } | 16 } |
15 | 17 |
16 namespace content { | 18 namespace content { |
17 | 19 |
18 // TODO(ddorwin): Move registration to ContentClient. | 20 // TODO(ddorwin): Move registration to ContentClient. |
19 void RegisterKeySystems(); | 21 void AddKeySystems(std::vector<KeySystemInfo>* key_systems_info); |
20 | 22 |
21 // Returns true if canPlayType should return an empty string for |key_system|. | 23 // Returns true if canPlayType should return an empty string for |key_system|. |
22 bool IsCanPlayTypeSuppressed(const std::string& key_system); | 24 bool IsCanPlayTypeSuppressed(const std::string& key_system); |
23 | 25 |
24 // Returns the name that UMA will use for the given |key_system|. | 26 // Returns the name that UMA will use for the given |key_system|. |
25 // This function can be called frequently. Hence this function should be | 27 // This function can be called frequently. Hence this function should be |
26 // implemented not to impact performance and does not rely on the main | 28 // implemented not to impact performance and does not rely on the main |
27 // key system map. | 29 // key system map. |
28 std::string KeySystemNameForUMAInternal(const WebKit::WebString& key_system); | 30 std::string KeySystemNameForUMAInternal(const WebKit::WebString& key_system); |
29 | 31 |
30 } // namespace content | 32 } // namespace content |
31 | 33 |
32 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ | 34 #endif // CONTENT_RENDERER_MEDIA_CRYPTO_KEY_SYSTEMS_INFO_H_ |
OLD | NEW |