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

Unified Diff: chrome/common/translate/language_detection_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/translate/language_detection_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/translate/language_detection_util.h
diff --git a/chrome/common/translate/language_detection_util.h b/chrome/common/translate/language_detection_util.h
deleted file mode 100644
index 4962b45bdbc24bc2ca4df77b0695cb0f6349f16e..0000000000000000000000000000000000000000
--- a/chrome/common/translate/language_detection_util.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// 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 CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_UTIL_H_
-#define CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_UTIL_H_
-
-#include <string>
-
-#include "base/strings/string16.h"
-
-namespace LanguageDetectionUtil {
-
-// Determines content page language from Content-Language code and contents.
-std::string DeterminePageLanguage(const std::string& code,
- const std::string& html_lang,
- const base::string16& contents,
- std::string* cld_language,
- bool* is_cld_reliable);
-
-// Corrects language code if it contains well-known mistakes.
-// Called only by tests.
-void CorrectLanguageCodeTypo(std::string* code);
-
-// Checks if the language code's format is valid.
-// Called only by tests.
-bool IsValidLanguageCode(const std::string& code);
-
-// Checks if languages are matched, or similar. This function returns true
-// against a language pair containing a language which is difficult for CLD to
-// distinguish.
-// Called only by tests.
-bool IsSameOrSimilarLanguages(const std::string& page_language,
- const std::string& cld_language);
-
-// Checks if languages pair is one of well-known pairs of wrong server
-// configuration.
-// Called only by tests.
-bool MaybeServerWrongConfiguration(const std::string& page_language,
- const std::string& cld_language);
-
-// Returns the version string of CLD.
-std::string GetCLDVersion();
-
-} // namespace LanguageDetectionUtil
-
-#endif // CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_UTIL_H_
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/translate/language_detection_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698