Lines Matching refs:difference
481 int32 difference = domain.Length() - cookieDomain.Length(); in IsValidForDomain() local
484 if (difference < 0) in IsValidForDomain()
495 const char* suffix = domain.String() + difference; in IsValidForDomain()
496 return (strcmp(suffix, cookieDomain.String()) == 0 && (difference == 0 in IsValidForDomain()
497 || domain[difference - 1] == '.')); in IsValidForDomain()
534 int32 difference = domain.Length() - cookieDomain.Length(); in _CanBeSetFromDomain() local
535 if (difference < 0) { in _CanBeSetFromDomain()
537 const char* suffix = cookieDomain.String() + difference; in _CanBeSetFromDomain()
538 return (strcmp(suffix, domain.String()) == 0 && (difference == 0 in _CanBeSetFromDomain()
539 || cookieDomain[difference - 1] == '.')); in _CanBeSetFromDomain()
555 const char* suffix = domain.String() + difference; in _CanBeSetFromDomain()
556 return (strcmp(suffix, cookieDomain.String()) == 0 && (difference == 0 in _CanBeSetFromDomain()
557 || domain[difference - 1] == '.')); in _CanBeSetFromDomain()