libcef/browser/net/chrome_scheme_handler.cc
// Returns true if a host is WebUI and should be allowed to load.
Returns true if a host is WebUI and should be allowed to load.
Returns true if a host is WebUI and should be allowed to load .
bool IsAllowedWebUIHost(const std::string& host) {
  for (size_t i = 0;
       i < sizeof(kAllowedWebUIHosts) / sizeof(kAllowedWebUIHosts[0]); ++i) {
    if (base::EqualsCaseInsensitiveASCII(kAllowedWebUIHosts[i], host.c_str())) {
      return true;
    }
  }
  return false;
}
bool IsAllowedWebUIHost ( const std :: string & host ) { for ( size_t i = 0 ; i < sizeof ( kAllowedWebUIHosts ) / sizeof ( kAllowedWebUIHosts [ 0 ] ) ; ++ i ) { if ( base :: EqualsCaseInsensitiveASCII ( kAllowedWebUIHosts [ i ] , host . c_str ( ) ) ) { return true ; } } return false ; }
Returns true if a host is WebUI and should be allowed to load.
Returns true if a host is WebUI and should be allowed to load .
// Explicitly whitelisted WebUI hosts.