OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 namespace metrics { |
| 11 class TranslateEventProto; |
| 12 } // namespace metrics |
| 13 |
| 14 namespace sync_pb { |
| 15 class UserEventSpecifics; |
| 16 } // namespace sync_pb |
| 17 |
| 18 namespace translate { |
| 19 |
| 20 // Construct the sync_pb::Translation proto. |
| 21 // If the event is the event that we care about, will return true, otherwise, |
| 22 // will return false. |
| 23 bool ConstructTranslateEvent( |
| 24 int64_t navigation_id, |
| 25 const metrics::TranslateEventProto& translate_event, |
| 26 sync_pb::UserEventSpecifics* const specifics); |
| 27 } // namespace translate |
| 28 |
| 29 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
OLD | NEW |