Add widevine third party
Add 2 new command options to use widevine: - widevine-cdm-path: Path to widevine plugin - widevine-cdm-version: Version of the widevine plugin
This commit is contained in:
parent
5f3c6107d5
commit
9d878ad6b2
17 changed files with 529 additions and 12 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "base/version.h"
|
||||
#include "chrome/common/chrome_constants.h"
|
||||
#include "chrome/common/chrome_paths_internal.h"
|
||||
#include "chrome/common/widevine_cdm_constants.h"
|
||||
|
||||
#if defined(OS_ANDROID)
|
||||
#include "base/android/path_utils.h"
|
||||
|
@ -31,6 +32,8 @@
|
|||
#include "base/win/registry.h"
|
||||
#endif
|
||||
|
||||
#include "third_party/widevine/cdm/stub/widevine_cdm_version.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// The Pepper Flash plugins are in a directory with this name.
|
||||
|
@ -362,7 +365,7 @@ bool PathProvider(int key, base::FilePath* result) {
|
|||
case chrome::DIR_COMPONENT_WIDEVINE_CDM:
|
||||
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
|
||||
return false;
|
||||
cur = cur.Append(FILE_PATH_LITERAL("WidevineCDM"));
|
||||
cur = cur.Append(kWidevineCdmBaseDirectory);
|
||||
break;
|
||||
#endif // defined(WIDEVINE_CDM_IS_COMPONENT)
|
||||
// TODO(xhwang): FILE_WIDEVINE_CDM_ADAPTER has different meanings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue