| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_UTIL_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_UTIL_H_ |
| 6 #define CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_UTIL_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_UTIL_H_ |
| 7 | 7 |
| 8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
| 9 | 9 |
| 10 namespace TranslateURLUtil { | 10 namespace TranslateURLUtil { |
| 11 | 11 |
| 12 // Appends Translate API Key as a part of query to a passed |url|, and returns | 12 // Appends Translate API Key as a part of query to a passed |url|, and returns |
| 13 // GURL instance. | 13 // GURL instance. |
| 14 GURL AddApiKeyToUrl(const GURL& url); | 14 GURL AddApiKeyToUrl(const GURL& url); |
| 15 | 15 |
| 16 // Appends host locale parameter as a part of query to a passed |url|, and | 16 // Appends host locale parameter as a part of query to a passed |url|, and |
| 17 // returns GURL instance. | 17 // returns GURL instance. |
| 18 GURL AddHostLocaleToUrl(const GURL& url); | 18 GURL AddHostLocaleToUrl(const GURL& url); |
| 19 | 19 |
| 20 } // namespace TranslateURLUtil | 20 } // namespace TranslateURLUtil |
| 21 | 21 |
| 22 #endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_URL_UTIL_H_ | 22 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_URL_UTIL_H_ |
| OLD | NEW |