OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_LOGGING_HELPER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_LOGGING_HELPER_H_ |
6 #define COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_LOGGING_HELPER_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_LOGGING_HELPER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 namespace sync_pb { | 10 namespace sync_pb { |
11 class UserEventSpecifics; | 11 class UserEventSpecifics; |
12 } | 12 } |
13 | 13 |
14 namespace translate { | 14 namespace translate { |
15 | 15 |
16 struct LanguageDetectionDetails; | 16 struct LanguageDetectionDetails; |
17 | 17 |
| 18 // Construct language detection based on navigation_id and language detection |
| 19 // details. |
18 std::unique_ptr<sync_pb::UserEventSpecifics> ConstructLanguageDetectionEvent( | 20 std::unique_ptr<sync_pb::UserEventSpecifics> ConstructLanguageDetectionEvent( |
| 21 int64_t navigation_id, |
19 const LanguageDetectionDetails& details); | 22 const LanguageDetectionDetails& details); |
20 | 23 |
21 } // namespace translate | 24 } // namespace translate |
22 | 25 |
23 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_LOGGING_HELPER_H_ | 26 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_LANGUAGE_DETECTION_LOGGING_HELPER_H_ |
OLD | NEW |