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

Unified Diff: components/translate/common/translate_constants.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/translate/README ('k') | components/translate/common/translate_constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/common/translate_constants.h
diff --git a/components/translate/common/translate_constants.h b/components/translate/common/translate_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..81a6369a3833107cb880256dfe65568ef9ec7d80
--- /dev/null
+++ b/components/translate/common/translate_constants.h
@@ -0,0 +1,16 @@
+// 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_CONSTANTS_H_
+#define COMPONENTS_TRANSLATE_COMMON_TRANSLATE_CONSTANTS_H_
+
+namespace translate {
+
+// The language code used when the language of a page could not be detected.
+// (Matches what the CLD -Compact Language Detection- library reports.)
+extern const char* const kUnknownLanguageCode;
+
+} // namespace translate
+
+#endif // COMPONENTS_TRANSLATE_COMMON_TRANSLATE_CONSTANTS_H_
« no previous file with comments | « components/translate/README ('k') | components/translate/common/translate_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698