summaryrefslogtreecommitdiffstats
path: root/media/base/media.h
diff options
context:
space:
mode:
authorajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:36:22 +0000
committerajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-18 00:36:22 +0000
commit10000d66052ed5a1c42f5173bd93ea0af8a6d19b (patch)
tree272e718e2858efd87e71af38fcffd897fd4c6e94 /media/base/media.h
parent359cadcdcebadd6d9d87ee92d3dace00ad0a0736 (diff)
downloadchromium_src-10000d66052ed5a1c42f5173bd93ea0af8a6d19b.zip
chromium_src-10000d66052ed5a1c42f5173bd93ea0af8a6d19b.tar.gz
chromium_src-10000d66052ed5a1c42f5173bd93ea0af8a6d19b.tar.bz2
Move the ffmpeg loading function into media library.
This will allow us to hide the platform specific library loading code from the main chrome code. Review URL: http://codereview.chromium.org/69027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13991 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/media.h')
-rwxr-xr-xmedia/base/media.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/media/base/media.h b/media/base/media.h
new file mode 100755
index 0000000..171d4e8
--- /dev/null
+++ b/media/base/media.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2009 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.
+
+// Contains code that should be used for initializing, or querying the state
+// of the media library as a whole.
+
+#ifndef MEDIA_BASE_MEDIA_H_
+#define MEDIA_BASE_MEDIA_H_
+
+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.
+//
+// Returns true if everything was successfully initialized, false otherwise.
+bool InitializeMediaLibrary(const FilePath& module_dir);
+
+} // namespace media
+
+#endif // MEDIA_BASE_MEDIA_H_
+