Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Unified Diff: components/google/core/browser/google_util.h

Issue 2861183002: Google search subdomains included for Safesearch (Closed)
Patch Set: Fixed review comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « no previous file | components/google/core/browser/google_util.cc » ('j') | components/google/core/browser/google_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698