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

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

Issue 450463002: Update webrtc&libjingle 6774:6825. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 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
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 #include "init_webrtc.h" 5 #include "init_webrtc.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/metrics/field_trial.h" 11 #include "base/metrics/field_trial.h"
12 #include "base/native_library.h" 12 #include "base/native_library.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "talk/base/basictypes.h" 14 #include "webrtc/base/basictypes.h"
15 #include "third_party/libjingle/overrides/talk/base/logging.h" 15 #include "webrtc/base/logging.h"
16 16
17 const unsigned char* GetCategoryGroupEnabled(const char* category_group) { 17 const unsigned char* GetCategoryGroupEnabled(const char* category_group) {
18 return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group); 18 return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group);
19 } 19 }
20 20
21 void AddTraceEvent(char phase, 21 void AddTraceEvent(char phase,
22 const unsigned char* category_group_enabled, 22 const unsigned char* category_group_enabled,
23 const char* name, 23 const char* name,
24 unsigned long long id, 24 unsigned long long id,
25 int num_args, 25 int num_args,
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 #if !defined(OS_MACOSX) && !defined(OS_ANDROID) 129 #if !defined(OS_MACOSX) && !defined(OS_ANDROID)
130 &Allocate, &Dellocate, 130 &Allocate, &Dellocate,
131 #endif 131 #endif
132 &base::FieldTrialList::FindFullName, 132 &base::FieldTrialList::FindFullName,
133 logging::GetLogMessageHandler(), 133 logging::GetLogMessageHandler(),
134 &GetCategoryGroupEnabled, &AddTraceEvent, 134 &GetCategoryGroupEnabled, &AddTraceEvent,
135 &g_create_webrtc_media_engine, &g_destroy_webrtc_media_engine, 135 &g_create_webrtc_media_engine, &g_destroy_webrtc_media_engine,
136 &init_diagnostic_logging); 136 &init_diagnostic_logging);
137 137
138 if (init_ok) 138 if (init_ok)
139 talk_base::SetExtraLoggingInit(init_diagnostic_logging); 139 rtc::SetExtraLoggingInit(init_diagnostic_logging);
140 return init_ok; 140 return init_ok;
141 } 141 }
142 142
143 cricket::MediaEngineInterface* CreateWebRtcMediaEngine( 143 cricket::MediaEngineInterface* CreateWebRtcMediaEngine(
144 webrtc::AudioDeviceModule* adm, 144 webrtc::AudioDeviceModule* adm,
145 webrtc::AudioDeviceModule* adm_sc, 145 webrtc::AudioDeviceModule* adm_sc,
146 cricket::WebRtcVideoEncoderFactory* encoder_factory, 146 cricket::WebRtcVideoEncoderFactory* encoder_factory,
147 cricket::WebRtcVideoDecoderFactory* decoder_factory) { 147 cricket::WebRtcVideoDecoderFactory* decoder_factory) {
148 // For convenience of tests etc, we call InitializeWebRtcModule here. 148 // For convenience of tests etc, we call InitializeWebRtcModule here.
149 // For Chrome however, InitializeWebRtcModule must be called 149 // For Chrome however, InitializeWebRtcModule must be called
150 // explicitly before the sandbox is initialized. In that case, this call is 150 // explicitly before the sandbox is initialized. In that case, this call is
151 // effectively a noop. 151 // effectively a noop.
152 InitializeWebRtcModule(); 152 InitializeWebRtcModule();
153 return g_create_webrtc_media_engine(adm, adm_sc, encoder_factory, 153 return g_create_webrtc_media_engine(adm, adm_sc, encoder_factory,
154 decoder_factory); 154 decoder_factory);
155 } 155 }
156 156
157 void DestroyWebRtcMediaEngine(cricket::MediaEngineInterface* media_engine) { 157 void DestroyWebRtcMediaEngine(cricket::MediaEngineInterface* media_engine) {
158 g_destroy_webrtc_media_engine(media_engine); 158 g_destroy_webrtc_media_engine(media_engine);
159 } 159 }
160 160
161 #endif // LIBPEERCONNECTION_LIB 161 #endif // LIBPEERCONNECTION_LIB
OLDNEW
« no previous file with comments | « third_party/libjingle/overrides/init_webrtc.h ('k') | third_party/libjingle/overrides/initialize_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698