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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | media/base/media_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Contains code that should be used for initializing, or querying the state 5 // Contains code that should be used for initializing, or querying the state
6 // of the media library as a whole. 6 // of the media library as a whole.
7 7
8 #ifndef MEDIA_BASE_MEDIA_H_ 8 #ifndef MEDIA_BASE_MEDIA_H_
9 #define MEDIA_BASE_MEDIA_H_ 9 #define MEDIA_BASE_MEDIA_H_
10 10
11 class FilePath; 11 class FilePath;
12 12
13 namespace media { 13 namespace media {
14 14
15 // Attempts to initialize the media library (loading DLLs, DSOs, etc.). 15 // Attempts to initialize the media library (loading DLLs, DSOs, etc.).
16 //
16 // If |module_dir| is the emptry string, then the system default library paths 17 // If |module_dir| is the emptry string, then the system default library paths
17 // are searched for the dynamic libraries. If a |module_dir| is provided, then 18 // are searched for the dynamic libraries. If a |module_dir| is provided, then
18 // only the specified |module_dir| will be searched for the dynamic libraries. 19 // only the specified |module_dir| will be searched for the dynamic libraries.
19 // 20 //
21 // If multiple initializations are attempted with different |module_dir|s
22 // specified then the first one to succeed remains effective for the lifetime
23 // of the process.
24 //
20 // Returns true if everything was successfully initialized, false otherwise. 25 // Returns true if everything was successfully initialized, false otherwise.
21 bool InitializeMediaLibrary(const FilePath& module_dir); 26 bool InitializeMediaLibrary(const FilePath& module_dir);
22 27
28 // Use this if you need to check whether the media library is initialized
29 // for the this process, without actually trying to initialize it.
30 bool IsMediaLibraryInitialized();
31
23 // Attempts to initialize OpenMAX library. 32 // Attempts to initialize OpenMAX library.
24 // 33 //
25 // Returns true if OpenMAX was successfully initialized and loaded. 34 // Returns true if OpenMAX was successfully initialized and loaded.
26 bool InitializeOpenMaxLibrary(const FilePath& module_dir); 35 bool InitializeOpenMaxLibrary(const FilePath& module_dir);
27 36
28 } // namespace media 37 } // namespace media
29 38
30 #endif // MEDIA_BASE_MEDIA_H_ 39 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW
« 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