Make RealtimeIncomingAudioSources and RealtimeOutgoingAudioSources port agnostic
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Oct 2017 16:40:48 +0000 (16:40 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Oct 2017 16:40:48 +0000 (16:40 +0000)
commitc5a6ad240bfdb287c421e3dd7eb6a124aa5e00cf
tree5b261d3da8b22ae7d8989f2b9e74e1e99dda55a4
parent2583fc8984760f6a4a4339d0da2b44d4bba6eddb
Make RealtimeIncomingAudioSources and RealtimeOutgoingAudioSources port agnostic
https://bugs.webkit.org/show_bug.cgi?id=177928

Patch by Alejandro G. Castro <alex@igalia.com> on 2017-10-16
Reviewed by Youenn Fablet.

Refactor the RealtimeIncomingAudioSource and RealtimeOutgoingAudioSource classes,
move the mac specific code to a different class. This way we can use them from
other ports.

No new tests, we are not adding new functionality just refactoring.

* CMakeLists.txt:
* WebCore.xcodeproj/project.pbxproj:
* platform/mediastream/RealtimeIncomingAudioSource.cpp: Copied from Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.h. Just the port agnostic parts.
* platform/mediastream/RealtimeIncomingAudioSource.h: Copied from Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.h. Ditto.
* platform/mediastream/RealtimeOutgoingAudioSource.cpp: Copied from Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp. Ditto.
* platform/mediastream/RealtimeOutgoingAudioSource.h: Copied from Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.h. Ditto.
* platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.cpp: Added, it adds Cocoa code parts from original Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.cpp.
(WebCore::RealtimeIncomingAudioSource::create): Moved this function from the RealtimeOutgoingAudioSource.cpp file to avoid including the Cocoa file there.
* platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.h: Added Cocoa code from original Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.h.
* platform/mediastream/mac/RealtimeOutgoingAudioSourceCocoa.cpp: Added Cocoa code from original Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp.
(WebCore::RealtimeOutgoingAudioSource::create): Moved this function from the RealtimeOutgoingAudioSource.cpp file to avoid including the Cocoa file there.
* platform/mediastream/mac/RealtimeOutgoingAudioSourceCocoa.h: Added Cocoa code from the original Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223412 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/mediastream/RealtimeIncomingAudioSource.cpp [new file with mode: 0644]
Source/WebCore/platform/mediastream/RealtimeIncomingAudioSource.h [moved from Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.h with 85% similarity]
Source/WebCore/platform/mediastream/RealtimeOutgoingAudioSource.cpp [new file with mode: 0644]
Source/WebCore/platform/mediastream/RealtimeOutgoingAudioSource.h [moved from Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.h with 76% similarity]
Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.cpp [moved from Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSource.cpp with 69% similarity]
Source/WebCore/platform/mediastream/mac/RealtimeIncomingAudioSourceCocoa.h [new file with mode: 0644]
Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSourceCocoa.cpp [moved from Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.cpp with 75% similarity]
Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSourceCocoa.h [new file with mode: 0644]