widevine_cdm_common.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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.
  4. #ifndef WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
  5. #define WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_
  6. #include "base/token.h"
  7. // This file defines constants common to all Widevine CDM versions.
  8. // "alpha" is a temporary name until a convention is defined.
  9. const char kWidevineKeySystem[] = "com.widevine.alpha";
  10. const base::Token kWidevineCdmGuid{0x05d908e5dcca9960ull,
  11. 0xcd92d30eac98157aull};
  12. // Widevine CDM files are in a directory with this name. This path is also
  13. // hardcoded in some build files and changing it requires changing the build
  14. // files as well.
  15. const char kWidevineCdmBaseDirectory[] = "WidevineCdm";
  16. // This name is used by UMA. Do not change it!
  17. const char kWidevineKeySystemNameForUMA[] = "Widevine";
  18. const char kWidevineCdmDisplayName[] = "Widevine Content Decryption Module";
  19. // Identifier used by the PluginPrivateFileSystem to identify the files stored
  20. // for the Widevine CDM. This is used to store persistent files. As the files
  21. // were initially used by the CDM running as a pepper plugin, this ID is based
  22. // on the pepper plugin MIME type. Changing this will result in any existing
  23. // saved files becoming inaccesssible.
  24. const char kWidevineCdmFileSystemId[] = "application_x-ppapi-widevine-cdm";
  25. // Name of the CDM library.
  26. const char kWidevineCdmLibraryName[] = "widevinecdm";
  27. #endif // WIDEVINE_CDM_WIDEVINE_CDM_COMMON_H_