function findEntry(hostResolverInfo, hostname) {
  var entries = hostResolverInfo.cache.entries;
  for (var i = 0; i < entries.length; ++i) {
    if (entries[i].hostname == hostname)
      return i;
  }
  return -1;
}
/**
 * Finds an entry with the specified host name in the |hostResolverInfo| cache,
 * and returns its index.
 * @param {object} hostResolverInfo Results to search.
 * @param {object} hostname The host name to find.
 * @return {int} Index of the specified host.  -1 if not found.
 */
Finds an entry with the specified host name in the |hostResolverInfo| cache,
and returns its index.
@param {object} hostResolverInfo Results to search.
@param {object} hostname The host name to find.
@return {int} Index of the specified host.  -1 if not found.
Finds an entry with the specified host name in the |hostResolverInfo| cache and returns its index . @param { object } hostResolverInfo Results to search . @param { object } hostname The host name to find . @return { int } Index of the specified host . - 1 if not found .
function findEntry(hostResolverInfo, hostname) {
  var entries = hostResolverInfo.cache.entries;
  for (var i = 0; i < entries.length; ++i) {
    if (entries[i].hostname == hostname)
      return i;
  }
  return -1;
}
function findEntry ( hostResolverInfo , hostname ) { var entries = hostResolverInfo . cache . entries ; for ( var i = 0 ; i < entries . length ; ++ i ) { if ( entries [ i ] . hostname == hostname ) return i ; } return - 1 ; }
Finds an entry with the specified host name in the |hostResolverInfo| cache,
 and returns its index.
Finds an entry with the specified host name in the |hostResolverInfo| cache and returns its index .