OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/renderer/media/webrtc/peer_connection_dependency_factory.h" | 5 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/command_line.h" | 12 #include "base/command_line.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
13 #include "base/metrics/field_trial.h" | 16 #include "base/metrics/field_trial.h" |
14 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
15 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
16 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
| 20 #include "build/build_config.h" |
17 #include "content/common/media/media_stream_messages.h" | 21 #include "content/common/media/media_stream_messages.h" |
18 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
19 #include "content/public/common/content_switches.h" | 23 #include "content/public/common/content_switches.h" |
20 #include "content/public/common/renderer_preferences.h" | 24 #include "content/public/common/renderer_preferences.h" |
21 #include "content/public/common/webrtc_ip_handling_policy.h" | 25 #include "content/public/common/webrtc_ip_handling_policy.h" |
22 #include "content/public/renderer/content_renderer_client.h" | 26 #include "content/public/renderer/content_renderer_client.h" |
23 #include "content/renderer/media/media_stream.h" | 27 #include "content/renderer/media/media_stream.h" |
24 #include "content/renderer/media/media_stream_audio_processor.h" | 28 #include "content/renderer/media/media_stream_audio_processor.h" |
25 #include "content/renderer/media/media_stream_audio_processor_options.h" | 29 #include "content/renderer/media/media_stream_audio_processor_options.h" |
26 #include "content/renderer/media/media_stream_audio_source.h" | 30 #include "content/renderer/media/media_stream_audio_source.h" |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 } | 773 } |
770 | 774 |
771 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { | 775 void PeerConnectionDependencyFactory::EnsureWebRtcAudioDeviceImpl() { |
772 if (audio_device_.get()) | 776 if (audio_device_.get()) |
773 return; | 777 return; |
774 | 778 |
775 audio_device_ = new WebRtcAudioDeviceImpl(); | 779 audio_device_ = new WebRtcAudioDeviceImpl(); |
776 } | 780 } |
777 | 781 |
778 } // namespace content | 782 } // namespace content |
OLD | NEW |