summaryrefslogtreecommitdiffstats
path: root/chromium/components/translate/common/translate_util.h
blob: 41b34968e6863780c586e9d98695b8008de9699f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_
#define COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_

#include <string>

class GURL;

namespace translate {

// Isolated world sets following security-origin by default.
extern const char kSecurityOrigin[];

// Converts language code synonym to use at Translate server.
void ToTranslateLanguageSynonym(std::string* language);

// Converts language code synonym to use at Chrome internal.
void ToChromeLanguageSynonym(std::string* language);

// Get Security origin with which Translate runs.
GURL GetTranslateSecurityOrigin();

}  // namespace translate

#endif  // COMPONENTS_TRANSLATE_COMMON_TRANSLATE_UTIL_H_