gecko-dev/dom/media/platforms
Gabriele Svelto ace6d1063f Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55442

--HG--
extra : moz-landing-system : lando
2019-12-06 09:24:56 +00:00
..
agnostic Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
android Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
apple Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
ffmpeg Bug 1588233 - P2: Set ST_NO_EXCEPTION_HANDLING before using SoundTouch. r=glandium 2019-11-26 00:48:24 +00:00
omx Bug 1543359 - P13. Let the video decoder determines the default colorspace if unknown. r=mattwoodrow 2019-07-26 08:45:39 +00:00
wmf Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
wrappers Bug 1568058 - pt 2 - Add batch decode methods to MediaDataDecoder. r=jya 2019-11-14 16:06:39 +00:00
AllocationPolicy.cpp Bug 1582812 - fix some dom/media/ header cargo-culting; r=mccr8 2019-09-20 20:19:32 +00:00
AllocationPolicy.h Bug 1533252 - P4. Serialize all the video MediaCapabilities queries. r=pehrsons 2019-03-15 13:54:19 +00:00
MediaTelemetryConstants.h
PDMFactory.cpp Bug 1563139 - Remove StaticPrefs.h. r=glandium 2019-07-26 01:10:23 +00:00
PDMFactory.h Bug 1555891 - Merge PVideoDecoder into PRemoteDecoder. r=jya,jld 2019-06-11 02:01:51 +00:00
PEMFactory.cpp Bug 1570337 - p4: implement Android encoder. r=jya 2019-09-12 18:19:08 +00:00
PEMFactory.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
PlatformDecoderModule.h Bug 1568058 - pt 2 - Add batch decode methods to MediaDataDecoder. r=jya 2019-11-14 16:06:39 +00:00
PlatformEncoderModule.h Bug 1570337 - p3: extract method for reuse. r=jya 2019-09-12 18:19:00 +00:00
ReorderQueue.h
SimpleMap.h
moz.build Bug 1570337 - p4: implement Android encoder. r=jya 2019-09-12 18:19:08 +00:00