OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
6 #define COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 namespace translate { | 14 namespace translate { |
15 | 15 |
16 struct LanguageDetectionDetails { | 16 struct LanguageDetectionDetails { |
17 LanguageDetectionDetails(); | 17 LanguageDetectionDetails(); |
| 18 LanguageDetectionDetails(const LanguageDetectionDetails& other); |
18 ~LanguageDetectionDetails(); | 19 ~LanguageDetectionDetails(); |
19 | 20 |
20 // The time when this was created. | 21 // The time when this was created. |
21 base::Time time; | 22 base::Time time; |
22 | 23 |
23 // The URL. | 24 // The URL. |
24 GURL url; | 25 GURL url; |
25 | 26 |
26 // The language detected by the content (Content-Language). | 27 // The language detected by the content (Content-Language). |
27 std::string content_language; | 28 std::string content_language; |
(...skipping 15 matching lines...) Expand all Loading... |
43 // The adopted language. | 44 // The adopted language. |
44 std::string adopted_language; | 45 std::string adopted_language; |
45 | 46 |
46 // The contents which is used for detection. | 47 // The contents which is used for detection. |
47 base::string16 contents; | 48 base::string16 contents; |
48 }; | 49 }; |
49 | 50 |
50 } // namespace translate | 51 } // namespace translate |
51 | 52 |
52 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ | 53 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_DETAILS_H_ |
OLD | NEW |