OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
| 6 #define CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/time.h" |
| 11 #include "googleurl/src/gurl.h" |
| 12 #include "ipc/ipc_message_macros.h" |
| 13 |
| 14 struct LanguageDetectionDetails { |
| 15 LanguageDetectionDetails(); |
| 16 ~LanguageDetectionDetails(); |
| 17 |
| 18 // The time when this was created |
| 19 base::Time time; |
| 20 |
| 21 // The URL |
| 22 GURL url; |
| 23 |
| 24 // The language detected by the content |
| 25 std::string content_language; |
| 26 |
| 27 // The language detected by CLD |
| 28 std::string cld_language; |
| 29 |
| 30 // Whether the CLD detection is reliable or not |
| 31 bool is_cld_reliable; |
| 32 |
| 33 // The adopted language |
| 34 std::string adopted_language; |
| 35 }; |
| 36 |
| 37 #endif // CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
OLD | NEW |