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

Side by Side Diff: media/base/media.h

Issue 7587012: Remove mock_ffmpeg and update media unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « no previous file | media/base/media_posix.cc » ('j') | media/base/test_data_util.h » ('J')
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 //
17 // 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
18 // 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
19 // 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.
20 // 20 //
21 // If multiple initializations are attempted with different |module_dir|s 21 // If multiple initializations are attempted with different |module_dir|s
22 // specified then the first one to succeed remains effective for the lifetime 22 // specified then the first one to succeed remains effective for the lifetime
23 // of the process. 23 // of the process.
24 // 24 //
25 // Returns true if everything was successfully initialized, false otherwise. 25 // Returns true if everything was successfully initialized, false otherwise.
26 bool InitializeMediaLibrary(const FilePath& module_dir); 26 bool InitializeMediaLibrary(const FilePath& module_dir);
27 27
28 // Helper method for unit tests to avoid boiler plate code everywhere.
29 bool InitializeMediaLibraryForTesting();
scherkus (not reviewing) 2011/08/11 01:26:29 It looks like this gets called in many places. Wo
acolwell GONE FROM CHROMIUM 2011/08/11 23:54:40 Done.
30
28 // Use this if you need to check whether the media library is initialized 31 // Use this if you need to check whether the media library is initialized
29 // for the this process, without actually trying to initialize it. 32 // for the this process, without actually trying to initialize it.
30 bool IsMediaLibraryInitialized(); 33 bool IsMediaLibraryInitialized();
31 34
32 // Attempts to initialize OpenMAX library. 35 // Attempts to initialize OpenMAX library.
33 // 36 //
34 // Returns true if OpenMAX was successfully initialized and loaded. 37 // Returns true if OpenMAX was successfully initialized and loaded.
35 bool InitializeOpenMaxLibrary(const FilePath& module_dir); 38 bool InitializeOpenMaxLibrary(const FilePath& module_dir);
36 39
37 } // namespace media 40 } // namespace media
38 41
39 #endif // MEDIA_BASE_MEDIA_H_ 42 #endif // MEDIA_BASE_MEDIA_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/media_posix.cc » ('j') | media/base/test_data_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698