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 #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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.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 "base/trace_event/trace_event.h" | 14 #include "base/trace_event/trace_event.h" |
15 #include "webrtc/base/basictypes.h" | 15 #include "third_party/webrtc/overrides/webrtc/base/basictypes.h" |
16 #include "webrtc/base/logging.h" | 16 #include "third_party/webrtc/overrides/webrtc/base/logging.h" |
17 | 17 |
18 const unsigned char* GetCategoryGroupEnabled(const char* category_group) { | 18 const unsigned char* GetCategoryGroupEnabled(const char* category_group) { |
19 return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group); | 19 return TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(category_group); |
20 } | 20 } |
21 | 21 |
22 void AddTraceEvent(char phase, | 22 void AddTraceEvent(char phase, |
23 const unsigned char* category_group_enabled, | 23 const unsigned char* category_group_enabled, |
24 const char* name, | 24 const char* name, |
25 unsigned long long id, | 25 unsigned long long id, |
26 int num_args, | 26 int num_args, |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 InitializeWebRtcModule(); | 184 InitializeWebRtcModule(); |
185 return g_create_webrtc_media_engine(adm, adm_sc, encoder_factory, | 185 return g_create_webrtc_media_engine(adm, adm_sc, encoder_factory, |
186 decoder_factory); | 186 decoder_factory); |
187 } | 187 } |
188 | 188 |
189 void DestroyWebRtcMediaEngine(cricket::MediaEngineInterface* media_engine) { | 189 void DestroyWebRtcMediaEngine(cricket::MediaEngineInterface* media_engine) { |
190 g_destroy_webrtc_media_engine(media_engine); | 190 g_destroy_webrtc_media_engine(media_engine); |
191 } | 191 } |
192 | 192 |
193 #endif // LIBPEERCONNECTION_LIB | 193 #endif // LIBPEERCONNECTION_LIB |
OLD | NEW |