Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / google / google_util.h
index 0c5f3f5..717944c 100644 (file)
@@ -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.