Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / components / translate / core / common / language_detection_details.h
blobd18c23b51ccf56a06311f286e7b29bb3254a2474
1 // Copyright 2014 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.
5 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_
6 #define COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_
8 #include <string>
10 #include "base/strings/string16.h"
11 #include "base/time/time.h"
12 #include "url/gurl.h"
14 namespace translate {
16 struct LanguageDetectionDetails {
17 LanguageDetectionDetails();
18 ~LanguageDetectionDetails();
20 // The time when this was created.
21 base::Time time;
23 // The URL.
24 GURL url;
26 // The language detected by the content (Content-Language).
27 std::string content_language;
29 // The language detected by CLD.
30 std::string cld_language;
32 // Whether the CLD detection is reliable or not.
33 bool is_cld_reliable;
35 // The language written in the lang attribute of the html element.
36 std::string html_root_language;
38 // The adopted language.
39 std::string adopted_language;
41 // The contents which is used for detection.
42 base::string16 contents;
45 } // namespace translate
47 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_