X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fgoogle%2Fgoogle_util.h;h=717944c947dcbbe80fd598c0a3024a63244bff85;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=0c5f3f5914a2b39f8d9b0b0d47a7b25d95e61cb9;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/google/google_util.h b/src/chrome/browser/google/google_util.h index 0c5f3f5..717944c 100644 --- a/src/chrome/browser/google/google_util.h +++ b/src/chrome/browser/google/google_util.h @@ -29,6 +29,10 @@ const char kInstantExtendedAPIParam[] = "espv"; GURL LinkDoctorBaseURL(); void SetMockLinkDoctorBaseURLForTesting(); +// Returns the Google locale. This is the same string as +// AppendGoogleLocaleParam adds to the URL, only without the leading "hl". +std::string GetGoogleLocale(); + // Adds the Google locale string to the URL (e.g., hl=en-US). This does not // check to see if the param already exists. GURL AppendGoogleLocaleParam(const GURL& url); @@ -36,9 +40,11 @@ GURL AppendGoogleLocaleParam(const GURL& url); // String version of AppendGoogleLocaleParam. std::string StringAppendGoogleLocaleParam(const std::string& url); -// Adds the Google TLD string for the given profile to the URL (e.g., sd=com). -// This does not check to see if the param already exists. -GURL AppendGoogleTLDParam(Profile* profile, const GURL& url); +// Returns the Google country code string for the given profile. +std::string GetGoogleCountryCode(Profile* profile); + +// Returns the Google search URL for the given profile. +GURL GetGoogleSearchURL(Profile* profile); // Returns in |brand| the brand code or distribution tag that has been // assigned to a partner. Returns false if the information is not available.