Chromium Code Reviews| Index: components/google/core/browser/google_util.h |
| diff --git a/components/google/core/browser/google_util.h b/components/google/core/browser/google_util.h |
| index d2526b22b381cbef561d025069b9ddf5a0142fdc..578e4fad384a225be10337cdab8c813709b5a0b1 100644 |
| --- a/components/google/core/browser/google_util.h |
| +++ b/components/google/core/browser/google_util.h |
| @@ -99,6 +99,13 @@ bool IsGoogleDomainUrl(const GURL& url, |
| SubdomainPermission subdomain_permission, |
| PortPermission port_permission); |
| +// True if |url| is a valid URL with a host that is in the static list of |
| +// Google subdomains for google search, and an HTTP or HTTPS scheme. If |
| +// |port_permission| is DISALLOW_NON_STANDARD_PORTS, this also requires |url| to |
| +// use the standard port for its scheme (80 for HTTP, 443 for HTTPS). |
| +bool IsGoogleSearchSubdomainUrl(const GURL& url, |
| + PortPermission port_permission); |
|
Ilya Sherman
2017/05/11 00:33:35
Does this function need to be public, or could it
igorcov
2017/05/11 11:30:05
Done.
|
| + |
| // True if |url| represents a valid Google home page URL. |
| bool IsGoogleHomePageUrl(const GURL& url); |