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 #include "content/renderer/media/crypto/key_systems_info.h" | 5 #include "content/renderer/media/crypto/key_systems_info.h" |
6 | 6 |
7 #include "third_party/WebKit/public/platform/WebString.h" | 7 #include "third_party/WebKit/public/platform/WebString.h" |
8 | 8 |
9 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. | 9 #include "widevine_cdm_version.h" // In SHARED_INTERMEDIATE_DIR. |
10 | 10 |
11 // The following must be after widevine_cdm_version.h. | 11 // The following must be after widevine_cdm_version.h. |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 static const char kClearKeyKeySystem[] = "webkit-org.w3.clearkey"; | 15 static const char kClearKeyKeySystem[] = "webkit-org.w3.clearkey"; |
16 | 16 |
17 std::string KeySystemNameForUMAInternal(const WebKit::WebString& key_system) { | 17 std::string KeySystemNameForUMAInternal(const blink::WebString& key_system) { |
18 if (key_system == kClearKeyKeySystem) | 18 if (key_system == kClearKeyKeySystem) |
19 return "ClearKey"; | 19 return "ClearKey"; |
20 #if defined(WIDEVINE_CDM_AVAILABLE) | 20 #if defined(WIDEVINE_CDM_AVAILABLE) |
21 if (key_system == kWidevineKeySystem) | 21 if (key_system == kWidevineKeySystem) |
22 return "Widevine"; | 22 return "Widevine"; |
23 #endif // WIDEVINE_CDM_AVAILABLE | 23 #endif // WIDEVINE_CDM_AVAILABLE |
24 return "Unknown"; | 24 return "Unknown"; |
25 } | 25 } |
26 | 26 |
27 } // namespace content | 27 } // namespace content |
OLD | NEW |