| OLD | NEW |
| 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 WIDEVINE_CDM_COMMON_H_INCLUDED_ | 5 #ifndef WIDEVINE_CDM_COMMON_H_INCLUDED_ |
| 6 #define WIDEVINE_CDM_COMMON_H_INCLUDED_ | 6 #define WIDEVINE_CDM_COMMON_H_INCLUDED_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 | 9 |
| 10 // This file defines constants common to all Widevine CDM versions. | 10 // This file defines constants common to all Widevine CDM versions. |
| 11 | 11 |
| 12 // "alpha" is a temporary name until a convention is defined. | 12 // "alpha" is a temporary name until a convention is defined. |
| 13 const char kWidevineKeySystem[] = "com.widevine.alpha"; | 13 const char kWidevineKeySystem[] = "com.widevine.alpha"; |
| 14 | 14 |
| 15 const char kWidevineCdmPluginName[] = "Widevine HTML CDM"; | 15 const char kWidevineCdmPluginName[] = "Widevine HTML CDM"; |
| 16 // Will be parsed as HTML. | 16 // Will be parsed as HTML. |
| 17 const char kWidevineCdmPluginDescription[] = | 17 const char kWidevineCdmPluginDescription[] = |
| 18 "This plugin enables Widevine licenses for playback of HTML audio/video " | 18 "Enables Widevine licenses for playback of HTML audio/video content."; |
| 19 "content."; | |
| 20 const char kWidevineCdmPluginMimeType[] ="application/x-ppapi-widevine-cdm"; | 19 const char kWidevineCdmPluginMimeType[] ="application/x-ppapi-widevine-cdm"; |
| 21 const char kWidevineCdmPluginMimeTypeDescription[] = "Widevine HTML CDM"; | 20 const char kWidevineCdmPluginMimeTypeDescription[] = "Widevine HTML CDM"; |
| 22 | 21 |
| 23 // File name of the plugin on different platforms. | 22 // File name of the plugin on different platforms. |
| 24 const FilePath::CharType kWidevineCdmPluginFileName[] = | 23 const FilePath::CharType kWidevineCdmPluginFileName[] = |
| 25 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 26 FILE_PATH_LITERAL("widevinecdmplugin.plugin"); | 25 FILE_PATH_LITERAL("widevinecdmadapter.plugin"); |
| 27 #elif defined(OS_WIN) | 26 #elif defined(OS_WIN) |
| 28 FILE_PATH_LITERAL("widevinecdmplugin.dll"); | 27 FILE_PATH_LITERAL("widevinecdmadapter.dll"); |
| 29 #else // OS_LINUX, etc. | 28 #else // OS_LINUX, etc. |
| 30 FILE_PATH_LITERAL("libwidevinecdmplugin.so"); | 29 FILE_PATH_LITERAL("libwidevinecdmadapter.so"); |
| 31 #endif | 30 #endif |
| 32 | 31 |
| 33 #endif // WIDEVINE_CDM_COMMON_H_INCLUDED_ | 32 #endif // WIDEVINE_CDM_COMMON_H_INCLUDED_ |
| OLD | NEW |