Chromium Code Reviews| Index: components/translate/ios/browser/language_detection_controller.h |
| diff --git a/components/translate/ios/browser/language_detection_controller.h b/components/translate/ios/browser/language_detection_controller.h |
| index c3271e829dcb331e39206b28f2940916aa46a298..a016bbf91a131b807f20d94ba1794d2424d932b9 100644 |
| --- a/components/translate/ios/browser/language_detection_controller.h |
| +++ b/components/translate/ios/browser/language_detection_controller.h |
| @@ -35,6 +35,10 @@ class LanguageDetectionController : public web::WebStateObserver { |
| public: |
| // Language detection details, passed to language detection callbacks. |
| struct DetectionDetails { |
|
martis
2017/06/01 06:49:21
Did you investigate reusing LanguageDetectionDetai
ramyasharma
2017/06/02 07:20:24
Yes, I did some basic investigation, and it looked
|
| + DetectionDetails(); |
| + DetectionDetails(const DetectionDetails& other); |
| + ~DetectionDetails(); |
| + |
| // The language detected by the content (Content-Language). |
| std::string content_language; |
| @@ -43,6 +47,12 @@ class LanguageDetectionController : public web::WebStateObserver { |
| // The adopted language. |
| std::string adopted_language; |
| + |
| + // The language detected by CLD. |
| + std::string cld_language; |
| + |
| + // Whether the CLD detection is reliable or not. |
| + bool is_cld_reliable; |
| }; |
| LanguageDetectionController(web::WebState* web_state, |