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

Unified Diff: media/base/media.h

Issue 6537022: Move media library path resolution into Chrome path provider. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Get rid of spurious changes in previous patch-set. Created 9 years, 9 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
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | media/base/media_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media.h
diff --git a/media/base/media.h b/media/base/media.h
index 3d1a83a2dda2ada638191cb36a5725d3345c2d08..6bbad4cbbb9ec9caa484c50c240091c41e1de712 100644
--- a/media/base/media.h
+++ b/media/base/media.h
@@ -13,13 +13,22 @@ class FilePath;
namespace media {
// Attempts to initialize the media library (loading DLLs, DSOs, etc.).
+//
// If |module_dir| is the emptry string, then the system default library paths
// are searched for the dynamic libraries. If a |module_dir| is provided, then
// only the specified |module_dir| will be searched for the dynamic libraries.
//
+// If multiple initializations are attempted with different |module_dir|s
+// specified then the first one to succeed remains effective for the lifetime
+// of the process.
+//
// Returns true if everything was successfully initialized, false otherwise.
bool InitializeMediaLibrary(const FilePath& module_dir);
+// Use this if you need to check whether the media library is initialized
+// for the this process, without actually trying to initialize it.
+bool IsMediaLibraryInitialized();
+
// Attempts to initialize OpenMAX library.
//
// Returns true if OpenMAX was successfully initialized and loaded.
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | media/base/media_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698