Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: media/cdm/cdm_paths.h

Issue 1989893004: media: Use platform specific folders for CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: specify both paths in chrome.release Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..23733463b9d7688487e481f01dd4a10014d7488f
--- /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 path of a CDM relative to DIR_COMPONENTS.
+// On platforms where a platform 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_
« chrome/tools/build/win/FILES.cfg ('K') | « media/BUILD.gn ('k') | media/cdm/cdm_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698