| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/media_stream_dependency_factory.h" | 5 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "media/base/android/media_codec_bridge.h" | 51 #include "media/base/android/media_codec_bridge.h" |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 namespace content { | 54 namespace content { |
| 55 | 55 |
| 56 // Map of corresponding media constraints and platform effects. | 56 // Map of corresponding media constraints and platform effects. |
| 57 struct { | 57 struct { |
| 58 const char* constraint; | 58 const char* constraint; |
| 59 const media::AudioParameters::PlatformEffectsMask effect; | 59 const media::AudioParameters::PlatformEffectsMask effect; |
| 60 } const kConstraintEffectMap[] = { | 60 } const kConstraintEffectMap[] = { |
| 61 { content::kMediaStreamAudioDucking, |
| 62 media::AudioParameters::DUCKING }, |
| 61 { webrtc::MediaConstraintsInterface::kEchoCancellation, | 63 { webrtc::MediaConstraintsInterface::kEchoCancellation, |
| 62 media::AudioParameters::ECHO_CANCELLER}, | 64 media::AudioParameters::ECHO_CANCELLER }, |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 class P2PPortAllocatorFactory : public webrtc::PortAllocatorFactoryInterface { | 67 class P2PPortAllocatorFactory : public webrtc::PortAllocatorFactoryInterface { |
| 66 public: | 68 public: |
| 67 P2PPortAllocatorFactory( | 69 P2PPortAllocatorFactory( |
| 68 P2PSocketDispatcher* socket_dispatcher, | 70 P2PSocketDispatcher* socket_dispatcher, |
| 69 talk_base::NetworkManager* network_manager, | 71 talk_base::NetworkManager* network_manager, |
| 70 talk_base::PacketSocketFactory* socket_factory, | 72 talk_base::PacketSocketFactory* socket_factory, |
| 71 blink::WebFrame* web_frame) | 73 blink::WebFrame* web_frame) |
| 72 : socket_dispatcher_(socket_dispatcher), | 74 : socket_dispatcher_(socket_dispatcher), |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 | 820 |
| 819 void MediaStreamDependencyFactory::StartAecDump( | 821 void MediaStreamDependencyFactory::StartAecDump( |
| 820 const base::PlatformFile& aec_dump_file) { | 822 const base::PlatformFile& aec_dump_file) { |
| 821 // |pc_factory_| always takes ownership of |aec_dump_file|. If StartAecDump() | 823 // |pc_factory_| always takes ownership of |aec_dump_file|. If StartAecDump() |
| 822 // fails, |aec_dump_file| will be closed. | 824 // fails, |aec_dump_file| will be closed. |
| 823 if (!GetPcFactory()->StartAecDump(aec_dump_file)) | 825 if (!GetPcFactory()->StartAecDump(aec_dump_file)) |
| 824 VLOG(1) << "Could not start AEC dump."; | 826 VLOG(1) << "Could not start AEC dump."; |
| 825 } | 827 } |
| 826 | 828 |
| 827 } // namespace content | 829 } // namespace content |
| OLD | NEW |