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

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: And again, this time with working tests... Created 9 years, 10 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
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 void InitializeMediaLibrary(const FilePath& module_dir);
21
20 // Returns true if everything was successfully initialized, false otherwise. 22 // Returns true if everything was successfully initialized, false otherwise.
21 bool InitializeMediaLibrary(const FilePath& module_dir); 23 bool IsMediaLibraryInitialized();
22 24
23 // Attempts to initialize OpenMAX library. 25 // Attempts to initialize OpenMAX library.
24 // 26 //
25 // Returns true if OpenMAX was successfully initialized and loaded. 27 // Returns true if OpenMAX was successfully initialized and loaded.
26 bool InitializeOpenMaxLibrary(const FilePath& module_dir); 28 bool InitializeOpenMaxLibrary(const FilePath& module_dir);
27 29
28 } // namespace media 30 } // namespace media
29 31
30 #endif // MEDIA_BASE_MEDIA_H_ 32 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698