gecko-dev/netwerk/url-classifier
Gabriele Svelto 5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ 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/D55444

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
..
AsyncUrlChannelClassifier.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
AsyncUrlChannelClassifier.h
UrlClassifierCommon.cpp Bug 1584479 - Part 1: Add flag for blocked social cookies in the content blocking log. r=Ehsan,droeh 2019-11-01 23:24:25 +00:00
UrlClassifierCommon.h Bug 1584479 - Part 1: Add flag for blocked social cookies in the content blocking log. r=Ehsan,droeh 2019-11-01 23:24:25 +00:00
UrlClassifierFeatureBase.cpp Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm 2019-11-01 02:57:20 +00:00
UrlClassifierFeatureBase.h
UrlClassifierFeatureCryptominingAnnotation.cpp Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku 2019-10-19 04:30:24 +00:00
UrlClassifierFeatureCryptominingAnnotation.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureCryptominingProtection.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureCryptominingProtection.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureCustomTables.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureCustomTables.h
UrlClassifierFeatureFactory.cpp
UrlClassifierFeatureFactory.h
UrlClassifierFeatureFingerprintingAnnotation.cpp Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku 2019-10-19 04:30:24 +00:00
UrlClassifierFeatureFingerprintingAnnotation.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureFingerprintingProtection.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureFingerprintingProtection.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureFlash.cpp Bug 1584931 - P2. Disable flashblock when fission is enabled. r=bytesized 2019-12-04 09:00:28 +00:00
UrlClassifierFeatureFlash.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureLoginReputation.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureLoginReputation.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeaturePhishingProtection.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeaturePhishingProtection.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureResult.cpp
UrlClassifierFeatureResult.h
UrlClassifierFeatureSocialTrackingAnnotation.cpp Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku 2019-10-19 04:30:24 +00:00
UrlClassifierFeatureSocialTrackingAnnotation.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureSocialTrackingProtection.cpp Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureSocialTrackingProtection.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureTrackingAnnotation.cpp Bug 1589476 - Emit a separate notification when a tracker from the Level 2 Disconnect blocklist is observed on a page and use this code to avoid using the URL classifer service in the front-end; r=nhnt11,droeh 2019-11-18 20:56:36 +00:00
UrlClassifierFeatureTrackingAnnotation.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierFeatureTrackingProtection.cpp Bug 1584183 - Set nsILoadInfo.requestBlockingReason in UrlClassifierCommon::SetBlockedContent, r=dimi 2019-09-27 07:50:17 +00:00
UrlClassifierFeatureTrackingProtection.h Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
UrlClassifierSkipListService.jsm Bug 1581160 - Part 2: Do not prevent the local database from being checked in UrlClassifierSkipListService.jsm; r=johannh,leplatrem 2019-09-16 21:48:26 +00:00
components.conf
moz.build
nsChannelClassifier.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsChannelClassifier.h
nsIURIClassifier.idl
nsIUrlClassifierFeature.idl Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan 2019-09-27 13:22:18 +00:00
nsIUrlClassifierSkipListService.idl