cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / third_party / widevine / cdm / widevine_cdm_common.h
blob2b3ef0dbb653038210b2bb9304bd079c945640d9
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
3 // found in the LICENSE file.
5 #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
6 #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
8 #include "base/files/file_path.h"
10 // This file defines constants common to all Widevine CDM versions.
12 // Widevine CDM version contains 4 components, e.g. 1.4.0.195.
13 const int kWidevineCdmVersionNumComponents = 4;
15 // "alpha" is a temporary name until a convention is defined.
16 const char kWidevineKeySystem[] = "com.widevine.alpha";
18 const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
19 // Will be parsed as HTML.
20 const char kWidevineCdmDescription[] =
21 "Enables Widevine licenses for playback of HTML audio/video content.";
23 #if defined(ENABLE_PEPPER_CDMS)
24 const char kWidevineCdmPluginMimeType[] = "application/x-ppapi-widevine-cdm";
25 const char kWidevineCdmPluginMimeTypeDescription[] =
26 "Widevine Content Decryption Module";
28 // File name of the CDM on different platforms.
29 const char kWidevineCdmFileName[] =
30 #if defined(OS_MACOSX)
31 "libwidevinecdm.dylib";
32 #elif defined(OS_WIN)
33 "widevinecdm.dll";
34 #else // OS_LINUX, etc.
35 "libwidevinecdm.so";
36 #endif
38 // File name of the adapter on different platforms.
39 const char kWidevineCdmAdapterFileName[] =
40 #if defined(OS_MACOSX)
41 "widevinecdmadapter.plugin";
42 #elif defined(OS_WIN)
43 "widevinecdmadapter.dll";
44 #else // OS_LINUX, etc.
45 "libwidevinecdmadapter.so";
46 #endif
49 #if defined(OS_MACOSX) || defined(OS_WIN)
50 // CDM is installed by the component installer instead of the Chrome installer.
51 #define WIDEVINE_CDM_IS_COMPONENT
52 #endif // defined(OS_MACOSX) || defined(OS_WIN)
53 #endif // defined(ENABLE_PEPPER_CDMS)
55 #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_