blob: 7c67d1f0db57542839e8c0249ecd810830dc7df6 [file] [log] [blame]
xhwangc3a252b2016-05-23 02:35:481// Copyright 2016 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
5#ifndef MEDIA_CDM_CDM_PATHS_H_
6#define MEDIA_CDM_CDM_PATHS_H_
7
8#include <string>
9
10#include "base/files/file_path.h"
Ken Rockot315def72018-11-10 02:16:1011#include "base/token.h"
xhwangc3a252b2016-05-23 02:35:4812
13namespace media {
14
thestig02c965b2016-06-14 18:52:2315// Name of the ClearKey CDM library.
16extern const char kClearKeyCdmLibraryName[];
17
Xiaohan Wang17d4ffa2017-06-06 19:10:1118extern const char kClearKeyCdmBaseDirectory[];
19
Xiaohan Wang17d4ffa2017-06-06 19:10:1120// Display name for Clear Key CDM.
21extern const char kClearKeyCdmDisplayName[];
22
Xiaohan Wang328218572017-10-02 19:20:4123// The default GUID for Clear Key Cdm.
Ken Rockot315def72018-11-10 02:16:1024extern const base::Token kClearKeyCdmGuid;
Xiaohan Wang328218572017-10-02 19:20:4125
26// A different GUID for Clear Key Cdm for testing running different types of
27// CDMs in the system.
Ken Rockot315def72018-11-10 02:16:1028extern const base::Token kClearKeyCdmDifferentGuid;
Xiaohan Wang328218572017-10-02 19:20:4129
John Rummellf0ab9812017-10-11 20:00:4930// Identifier used by the PluginPrivateFileSystem to identify the files stored
31// for the Clear Key CDM.
32extern const char kClearKeyCdmFileSystemId[];
33
xhwangc3a252b2016-05-23 02:35:4834// Returns the path of a CDM relative to DIR_COMPONENTS.
35// On platforms where a platform specific path is used, returns
36// |cdm_base_path|/_platform_specific/<platform>_<arch>
37// e.g. WidevineCdm/_platform_specific/win_x64
38// Otherwise, returns an empty path.
39// TODO(xhwang): Use this function in Widevine CDM component installer.
John Rummell54c6ac502019-09-24 23:52:0640base::FilePath GetPlatformSpecificDirectory(
41 const base::FilePath& cdm_base_path);
xhwangc3a252b2016-05-23 02:35:4842base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path);
43
44} // namespace media
45
46#endif // MEDIA_CDM_CDM_PATHS_H_