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

Side by Side Diff: content/renderer/media/crypto/key_systems_info.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
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 #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
OLDNEW
« no previous file with comments | « content/renderer/media/crypto/key_systems_info.h ('k') | content/renderer/media/crypto/key_systems_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698