def IsValidByViaHeader(self):
    return ((not self.ShouldHaveChromeProxyViaHeader()) or self.HasChromeProxyViaHeader())
def IsValidByViaHeader(self):
    return ((not self.ShouldHaveChromeProxyViaHeader()) or self.HasChromeProxyViaHeader())