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

Side by Side Diff: chrome/common/translate/language_detection_details.h

Issue 93603006: Move Translate-related files to components/translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/translate/language_detection_details.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_TRANSLATE_LANGUAGE_DETECTION_DETAILS_H_
6 #define CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_DETAILS_H_
7
8 #include <string>
9
10 #include "base/strings/string16.h"
11 #include "base/time/time.h"
12 #include "url/gurl.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 (Content-Language).
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 language written in the lang attribute of the html element.
34 std::string html_root_language;
35
36 // The adopted language.
37 std::string adopted_language;
38
39 // The contents which is used for detection.
40 base::string16 contents;
41 };
42
43 #endif // CHROME_COMMON_TRANSLATE_LANGUAGE_DETECTION_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/translate/language_detection_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698