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

Side by Side Diff: chrome/common/translate/translate_util.h

Issue 25531002: Move language detection to a component (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Run translate unittests on iOS Created 7 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_TRANSLATE_TRANSLATE_UTIL_H_
6 #define CHROME_COMMON_TRANSLATE_TRANSLATE_UTIL_H_
7
8 #include <string>
9
10 class GURL;
11
12 namespace TranslateUtil {
13
14 // Isolated world sets following security-origin by default.
15 extern const char kSecurityOrigin[];
16
17 // Converts language code synonym to use at Translate server.
18 void ToTranslateLanguageSynonym(std::string* language);
19
20 // Converts language code synonym to use at Chrome internal.
21 void ToChromeLanguageSynonym(std::string* language);
22
23 // Get Security origin with which Translate runs.
24 GURL GetTranslateSecurityOrigin();
25
26 } // namespace TranslateUtil
27
28 #endif // CHROME_COMMON_TRANSLATE_TRANSLATE_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/common/translate/translate_common_metrics_unittest.cc ('k') | chrome/common/translate/translate_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698