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

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

Issue 15728008: Add the 'content' column to see what text is used to detect a language (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (Rebasing) Created 7 years, 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ 5 #ifndef CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_
6 #define CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ 6 #define CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h"
10 #include "base/time.h" 11 #include "base/time.h"
11 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
12 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
13 14
14 struct LanguageDetectionDetails { 15 struct LanguageDetectionDetails {
15 LanguageDetectionDetails(); 16 LanguageDetectionDetails();
16 ~LanguageDetectionDetails(); 17 ~LanguageDetectionDetails();
17 18
18 // The time when this was created 19 // The time when this was created
19 base::Time time; 20 base::Time time;
20 21
21 // The URL 22 // The URL
22 GURL url; 23 GURL url;
23 24
24 // The language detected by the content 25 // The language detected by the content
25 std::string content_language; 26 std::string content_language;
26 27
27 // The language detected by CLD 28 // The language detected by CLD
28 std::string cld_language; 29 std::string cld_language;
29 30
30 // Whether the CLD detection is reliable or not 31 // Whether the CLD detection is reliable or not
31 bool is_cld_reliable; 32 bool is_cld_reliable;
32 33
33 // The adopted language 34 // The adopted language
34 std::string adopted_language; 35 std::string adopted_language;
36
37 // The contents which is used for detection
38 string16 contents;
35 }; 39 };
36 40
37 #endif // CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_ 41 #endif // CHROME_COMMON_LANGUAGE_DETECTION_DETAILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698