gecko-dev/dom/media/systemservices
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
..
video_engine Bug 1508567 - Move call to run_function_deprecated_ to outside of message loop; r=pehrsons 2019-10-16 12:11:43 +00:00
CamerasChild.cpp Bug 1483631 - Using windowId when allocating media source instead of principal r=jib,farre 2019-12-04 15:39:41 +00:00
CamerasChild.h Bug 1483631 - Using windowId when allocating media source instead of principal r=jib,farre 2019-12-04 15:39:41 +00:00
CamerasParent.cpp Bug 1483631 - Using windowId when allocating media source instead of principal r=jib,farre 2019-12-04 15:39:41 +00:00
CamerasParent.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
CamerasTypes.h
MediaChild.cpp
MediaChild.h
MediaParent.cpp
MediaParent.h
MediaSystemResourceClient.cpp
MediaSystemResourceClient.h
MediaSystemResourceManager.cpp
MediaSystemResourceManager.h
MediaSystemResourceManagerChild.cpp
MediaSystemResourceManagerChild.h
MediaSystemResourceManagerParent.cpp
MediaSystemResourceManagerParent.h
MediaSystemResourceMessageUtils.h
MediaSystemResourceService.cpp
MediaSystemResourceService.h
MediaSystemResourceTypes.h
MediaTaskUtils.h
MediaUtils.cpp
MediaUtils.h
moz.build Bug 1582637 - Move internal DeviceChange events to higher order functions. r=jib,achronop 2019-10-29 13:01:43 +00:00
OpenSLESProvider.cpp
OpenSLESProvider.h
OSXRunLoopSingleton.cpp
OSXRunLoopSingleton.h
PCameras.ipdl Bug 1483631 - Using windowId when allocating media source instead of principal r=jib,farre 2019-12-04 15:39:41 +00:00
PMedia.ipdl
PMediaSystemResourceManager.ipdl
ShmemPool.cpp Bug 1584721 - P3. Add ability to make ShmemPool dynamic in size. r=mjf 2019-10-01 11:24:49 +00:00
ShmemPool.h Bug 1584721 - P3. Add ability to make ShmemPool dynamic in size. r=mjf 2019-10-01 11:24:49 +00:00
VideoEngine.cpp
VideoEngine.h
VideoFrameUtils.cpp
VideoFrameUtils.h