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

Side by Side Diff: third_party/libjingle/overrides/init_webrtc.h

Issue 14623027: Merge 199462 "Fix libpeerconnection build after a recent libjing..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1504/src/
Patch Set: Created 7 years, 7 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 | third_party/libjingle/overrides/init_webrtc.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 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 9
10 class CommandLine; 10 class CommandLine;
11 11
12 namespace cricket { 12 namespace cricket {
13 class MediaEngineInterface; 13 class MediaEngineInterface;
14 class WebRtcVideoDecoderFactory; 14 class WebRtcVideoDecoderFactory;
15 class WebRtcVideoEncoderFactory;
15 } // namespace cricket 16 } // namespace cricket
16 17
17 namespace webrtc { 18 namespace webrtc {
18 class AudioDeviceModule; 19 class AudioDeviceModule;
19 } // namespace webrtc 20 } // namespace webrtc
20 21
21 typedef cricket::MediaEngineInterface* (*CreateWebRtcMediaEngineFunction)( 22 typedef cricket::MediaEngineInterface* (*CreateWebRtcMediaEngineFunction)(
22 webrtc::AudioDeviceModule* adm, 23 webrtc::AudioDeviceModule* adm,
23 webrtc::AudioDeviceModule* adm_sc, 24 webrtc::AudioDeviceModule* adm_sc,
25 cricket::WebRtcVideoEncoderFactory* encoder_factory,
24 cricket::WebRtcVideoDecoderFactory* decoder_factory); 26 cricket::WebRtcVideoDecoderFactory* decoder_factory);
25 27
26 typedef void (*DestroyWebRtcMediaEngineFunction)( 28 typedef void (*DestroyWebRtcMediaEngineFunction)(
27 cricket::MediaEngineInterface* media_engine); 29 cricket::MediaEngineInterface* media_engine);
28 30
29 // A typedef for the main initialize function in libpeerconnection. 31 // A typedef for the main initialize function in libpeerconnection.
30 // This will initialize logging in the module with the proper arguments 32 // This will initialize logging in the module with the proper arguments
31 // as well as provide pointers back to a couple webrtc factory functions. 33 // as well as provide pointers back to a couple webrtc factory functions.
32 // The reason we get pointers to these functions this way is to avoid having 34 // The reason we get pointers to these functions this way is to avoid having
33 // to go through GetProcAddress et al and rely on specific name mangling. 35 // to go through GetProcAddress et al and rely on specific name mangling.
34 typedef bool (*InitializeModuleFunction)( 36 typedef bool (*InitializeModuleFunction)(
35 const CommandLine& command_line, 37 const CommandLine& command_line,
36 #if !defined(OS_MACOSX) 38 #if !defined(OS_MACOSX)
37 AllocateFunction alloc, 39 AllocateFunction alloc,
38 DellocateFunction dealloc, 40 DellocateFunction dealloc,
39 #endif 41 #endif
40 CreateWebRtcMediaEngineFunction* create_media_engine, 42 CreateWebRtcMediaEngineFunction* create_media_engine,
41 DestroyWebRtcMediaEngineFunction* destroy_media_engine); 43 DestroyWebRtcMediaEngineFunction* destroy_media_engine);
42 44
45 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION)
43 // Load and initialize the shared WebRTC module (libpeerconnection). 46 // Load and initialize the shared WebRTC module (libpeerconnection).
44 // Call this explicitly to load and initialize the WebRTC module (e.g. before 47 // Call this explicitly to load and initialize the WebRTC module (e.g. before
45 // initializing the sandbox in Chrome). 48 // initializing the sandbox in Chrome).
46 // If not called explicitly, this function will still be called from the main 49 // If not called explicitly, this function will still be called from the main
47 // CreateWebRtcMediaEngine factory function the first time it is called. 50 // CreateWebRtcMediaEngine factory function the first time it is called.
48 bool InitializeWebRtcModule(); 51 bool InitializeWebRtcModule();
52 #endif
49 53
50 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ 54 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_
OLDNEW
« no previous file with comments | « no previous file | third_party/libjingle/overrides/init_webrtc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698