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.
5 #ifndef COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
6 #define COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
14 // Isolated world sets following security-origin by default.
15 extern const char kSecurityOrigin[];
17 // Converts language code synonym to use at Translate server.
18 void ToTranslateLanguageSynonym(std::string* language);
20 // Converts language code synonym to use at Chrome internal.
21 void ToChromeLanguageSynonym(std::string* language);
23 // Get Security origin with which Translate runs.
24 GURL GetTranslateSecurityOrigin();
26 } // namespace translate
28 #endif // COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_