Chromium Code Reviews| 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 #include "third_party/webrtc/system_wrappers/interface/event_tracer.h" | 10 #include "third_party/webrtc/system_wrappers/interface/event_tracer.h" |
| 11 #include "third_party/webrtc/system_wrappers/interface/field_trial.h" | |
| 11 | 12 |
| 12 namespace base { | 13 namespace base { |
| 13 class CommandLine; | 14 class CommandLine; |
| 14 } | 15 } |
| 15 | 16 |
| 16 namespace cricket { | 17 namespace cricket { |
| 17 class MediaEngineInterface; | 18 class MediaEngineInterface; |
| 18 class WebRtcVideoDecoderFactory; | 19 class WebRtcVideoDecoderFactory; |
| 19 class WebRtcVideoEncoderFactory; | 20 class WebRtcVideoEncoderFactory; |
| 20 } // namespace cricket | 21 } // namespace cricket |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 42 // to go through GetProcAddress et al and rely on specific name mangling. | 43 // to go through GetProcAddress et al and rely on specific name mangling. |
| 43 typedef bool (*InitializeModuleFunction)( | 44 typedef bool (*InitializeModuleFunction)( |
| 44 const base::CommandLine& command_line, | 45 const base::CommandLine& command_line, |
| 45 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) | 46 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) |
| 46 AllocateFunction alloc, | 47 AllocateFunction alloc, |
| 47 DellocateFunction dealloc, | 48 DellocateFunction dealloc, |
| 48 #endif | 49 #endif |
| 49 logging::LogMessageHandlerFunction log_handler, | 50 logging::LogMessageHandlerFunction log_handler, |
| 50 webrtc::GetCategoryEnabledPtr trace_get_category_enabled, | 51 webrtc::GetCategoryEnabledPtr trace_get_category_enabled, |
| 51 webrtc::AddTraceEventPtr trace_add_trace_event, | 52 webrtc::AddTraceEventPtr trace_add_trace_event, |
| 53 webrtc::field_trial::FindFullNameMethod field_trial_find, | |
|
tommi (sloooow) - chröme
2014/05/10 07:26:22
Can we pass as pointer like we do for the other me
| |
| 52 CreateWebRtcMediaEngineFunction* create_media_engine, | 54 CreateWebRtcMediaEngineFunction* create_media_engine, |
| 53 DestroyWebRtcMediaEngineFunction* destroy_media_engine, | 55 DestroyWebRtcMediaEngineFunction* destroy_media_engine, |
| 54 InitDiagnosticLoggingDelegateFunctionFunction* init_diagnostic_logging); | 56 InitDiagnosticLoggingDelegateFunctionFunction* init_diagnostic_logging); |
| 55 | 57 |
| 56 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION) | 58 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION) |
| 57 // Load and initialize the shared WebRTC module (libpeerconnection). | 59 // Load and initialize the shared WebRTC module (libpeerconnection). |
| 58 // Call this explicitly to load and initialize the WebRTC module (e.g. before | 60 // Call this explicitly to load and initialize the WebRTC module (e.g. before |
| 59 // initializing the sandbox in Chrome). | 61 // initializing the sandbox in Chrome). |
| 60 // If not called explicitly, this function will still be called from the main | 62 // If not called explicitly, this function will still be called from the main |
| 61 // CreateWebRtcMediaEngine factory function the first time it is called. | 63 // CreateWebRtcMediaEngine factory function the first time it is called. |
| 62 bool InitializeWebRtcModule(); | 64 bool InitializeWebRtcModule(); |
| 63 #endif | 65 #endif |
| 64 | 66 |
| 65 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ | 67 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ |
| OLD | NEW |