• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 //
5 // Some Google related utility functions.
6 
7 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__
8 #define CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__
9 #pragma once
10 
11 #include <string>
12 
13 class GURL;
14 
15 namespace google_util {
16 
17 extern const char kLinkDoctorBaseURL[];
18 
19 // Adds the Google locale string to the URL (e.g., hl=en-US).  This does not
20 // check to see if the param already exists.
21 GURL AppendGoogleLocaleParam(const GURL& url);
22 
23 // String version of AppendGoogleLocaleParam.
24 std::string StringAppendGoogleLocaleParam(const std::string& url);
25 
26 // Adds the Google TLD string to the URL (e.g., sd=com).  This does not
27 // check to see if the param already exists.
28 GURL AppendGoogleTLDParam(const GURL& url);
29 
30 }  // namespace google_util
31 
32 #endif  // CHROME_BROWSER_GOOGLE_GOOGLE_UTIL_H__
33