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..dedbf085d3ff2cd2f558814874480a57576703f9 |
--- /dev/null |
+++ b/media/cdm/cdm_paths.h |
@@ -0,0 +1,25 @@ |
+// 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" |
+#include "media/base/media_export.h" |
+ |
+namespace media { |
+ |
+// Returns the platform specific relative path of a component CDM. When CDM is |
ddorwin
2016/05/19 00:04:26
...path of the CDM. When...
It's always the path,
xhwang
2016/05/20 00:22:35
Done.
|
+// not a component, returns an empty path. Otherwise, returns |
+// |cdm_base_path|/_platform_specific/<platform>_<arch> |
+// e.g. WidevineCdm/_platform_specific/win_x64 |
+// TODO(xhwang): Use this function in Widevine CDM component installer. |
+MEDIA_EXPORT base::FilePath GetPlatformSpecificDirectory( |
+ const std::string& cdm_base_path); |
+ |
+} // namespace media |
+ |
+#endif // MEDIA_CDM_CDM_PATHS_H_ |