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

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

Issue 14617016: Forward log calls to Chrome's log handler and not create a specific log file for libpeerconnection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 #include "base/logging.h"
9 10
10 class CommandLine; 11 class CommandLine;
11 12
12 namespace cricket { 13 namespace cricket {
13 class MediaEngineInterface; 14 class MediaEngineInterface;
14 class WebRtcVideoDecoderFactory; 15 class WebRtcVideoDecoderFactory;
15 class WebRtcVideoEncoderFactory; 16 class WebRtcVideoEncoderFactory;
16 } // namespace cricket 17 } // namespace cricket
17 18
18 namespace webrtc { 19 namespace webrtc {
(...skipping 13 matching lines...) Expand all
32 // This will initialize logging in the module with the proper arguments 33 // This will initialize logging in the module with the proper arguments
33 // as well as provide pointers back to a couple webrtc factory functions. 34 // as well as provide pointers back to a couple webrtc factory functions.
34 // The reason we get pointers to these functions this way is to avoid having 35 // The reason we get pointers to these functions this way is to avoid having
35 // to go through GetProcAddress et al and rely on specific name mangling. 36 // to go through GetProcAddress et al and rely on specific name mangling.
36 typedef bool (*InitializeModuleFunction)( 37 typedef bool (*InitializeModuleFunction)(
37 const CommandLine& command_line, 38 const CommandLine& command_line,
38 #if !defined(OS_MACOSX) 39 #if !defined(OS_MACOSX)
39 AllocateFunction alloc, 40 AllocateFunction alloc,
40 DellocateFunction dealloc, 41 DellocateFunction dealloc,
41 #endif 42 #endif
43 logging::LogMessageHandlerFunction log_handler,
42 CreateWebRtcMediaEngineFunction* create_media_engine, 44 CreateWebRtcMediaEngineFunction* create_media_engine,
43 DestroyWebRtcMediaEngineFunction* destroy_media_engine); 45 DestroyWebRtcMediaEngineFunction* destroy_media_engine);
44 46
45 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION) 47 #if !defined(LIBPEERCONNECTION_IMPLEMENTATION)
46 // Load and initialize the shared WebRTC module (libpeerconnection). 48 // Load and initialize the shared WebRTC module (libpeerconnection).
47 // Call this explicitly to load and initialize the WebRTC module (e.g. before 49 // Call this explicitly to load and initialize the WebRTC module (e.g. before
48 // initializing the sandbox in Chrome). 50 // initializing the sandbox in Chrome).
49 // If not called explicitly, this function will still be called from the main 51 // If not called explicitly, this function will still be called from the main
50 // CreateWebRtcMediaEngine factory function the first time it is called. 52 // CreateWebRtcMediaEngine factory function the first time it is called.
51 bool InitializeWebRtcModule(); 53 bool InitializeWebRtcModule();
52 #endif 54 #endif
53 55
54 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_INIT_WEBRTC_H_ 56 #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