Chromium Code Reviews| Index: media/cdm/cdm_paths.h |
| diff --git a/media/cdm/cdm_paths.h b/media/cdm/cdm_paths.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c206c3e30a3503c89756b08e8ff2cba025787589 |
| --- /dev/null |
| +++ b/media/cdm/cdm_paths.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_CDM_CDM_PATHS_H_ |
| +#define MEDIA_CDM_CDM_PATHS_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/files/file_path.h" |
| + |
| +namespace media { |
| + |
| +// Returns the relative path of a component CDM. On platforms where a platform |
|
ddorwin
2016/05/20 04:08:56
Drop "component" from the first sentence.
Perhaps
xhwang
2016/05/20 07:18:19
Done, though DIR_COMPONENTS is really a "chrome" c
|
| +// specific path is used, returns |
| +// |cdm_base_path|/_platform_specific/<platform>_<arch> |
| +// e.g. WidevineCdm/_platform_specific/win_x64 |
| +// Otherwise, returns an empty path. |
| +// TODO(xhwang): Use this function in Widevine CDM component installer. |
| +base::FilePath GetPlatformSpecificDirectory(const std::string& cdm_base_path); |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_CDM_CDM_PATHS_H_ |