OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ | 5 #ifndef THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ |
6 #define THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ | 6 #define THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ |
7 | 7 |
8 #include "allocator_shim/allocator_stub.h" | 8 #include "allocator_shim/allocator_stub.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 typedef void (*DestroyWebRtcMediaEngineFunction)( | 33 typedef void (*DestroyWebRtcMediaEngineFunction)( |
34 cricket::MediaEngineInterface* media_engine); | 34 cricket::MediaEngineInterface* media_engine); |
35 | 35 |
36 // A typedef for the main initialize function in libpeerconnection. | 36 // A typedef for the main initialize function in libpeerconnection. |
37 // This will initialize logging in the module with the proper arguments | 37 // This will initialize logging in the module with the proper arguments |
38 // as well as provide pointers back to a couple webrtc factory functions. | 38 // as well as provide pointers back to a couple webrtc factory functions. |
39 // The reason we get pointers to these functions this way is to avoid having | 39 // The reason we get pointers to these functions this way is to avoid having |
40 // to go through GetProcAddress et al and rely on specific name mangling. | 40 // to go through GetProcAddress et al and rely on specific name mangling. |
41 typedef bool (*InitializeModuleFunction)( | 41 typedef bool (*InitializeModuleFunction)( |
42 const CommandLine& command_line, | 42 const CommandLine& command_line, |
43 #if !defined(OS_MACOSX) | 43 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
44 AllocateFunction alloc, | 44 AllocateFunction alloc, |
45 DellocateFunction dealloc, | 45 DellocateFunction dealloc, |
46 #endif | 46 #endif |
47 logging::LogMessageHandlerFunction log_handler, | 47 logging::LogMessageHandlerFunction log_handler, |
48 #if defined(ENABLE_WEBRTC) | 48 #if defined(ENABLE_WEBRTC) |
49 webrtc::GetCategoryEnabledPtr trace_get_category_enabled, | 49 webrtc::GetCategoryEnabledPtr trace_get_category_enabled, |
50 webrtc::AddTraceEventPtr trace_add_trace_event, | 50 webrtc::AddTraceEventPtr trace_add_trace_event, |
51 #endif | 51 #endif |
52 CreateWebRtcMediaEngineFunction* create_media_engine, | 52 CreateWebRtcMediaEngineFunction* create_media_engine, |
53 DestroyWebRtcMediaEngineFunction* destroy_media_engine); | 53 DestroyWebRtcMediaEngineFunction* destroy_media_engine); |
54 | 54 |
55 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION) | 55 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION) |
56 // Load and initialize the shared WebRTC module (libpeerconnection). | 56 // Load and initialize the shared WebRTC module (libpeerconnection). |
57 // Call this explicitly to load and initialize the WebRTC module (e.g. before | 57 // Call this explicitly to load and initialize the WebRTC module (e.g. before |
58 // initializing the sandbox in Chrome). | 58 // initializing the sandbox in Chrome). |
59 // If not called explicitly, this function will still be called from the main | 59 // If not called explicitly, this function will still be called from the main |
60 // CreateWebRtcMediaEngine factory function the first time it is called. | 60 // CreateWebRtcMediaEngine factory function the first time it is called. |
61 bool InitializeWebRtcModule(); | 61 bool InitializeWebRtcModule(); |
62 #endif | 62 #endif |
63 | 63 |
64 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ | 64 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ |
OLD | NEW |