summaryrefslogtreecommitdiffstats
path: root/media/base/media.h
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 11:49:25 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-17 11:49:25 +0000
commit1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5 (patch)
tree7138c88a5e12fc12ff0c27d16a72c71acb91b68e /media/base/media.h
parent7c24af349c6756ada9398c77783794c067a639cc (diff)
downloadchromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.zip
chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.gz
chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.bz2
Move media library path resolution into Chrome path provider.
BUG=None TEST=None Review URL: http://codereview.chromium.org/6537022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media.h')
-rw-r--r--media/base/media.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/base/media.h b/media/base/media.h
index 3d1a83a..6bbad4c 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.