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 namespace metrics { |
| 9 class TranslateEventProto; |
| 10 } |
| 11 |
| 12 namespace sync_pb { |
| 13 class UserEventSpecifics; |
| 14 } |
| 15 |
| 16 namespace translate { |
| 17 |
| 18 // Construct the sync_pb::Translation proto. |
| 19 // If the event is the event that we care about, will return true, otherwise, |
| 20 // will return false. |
| 21 bool ConstructTranslateEvent( |
| 22 const metrics::TranslateEventProto& translate_event, |
| 23 sync_pb::UserEventSpecifics* const specifics); |
| 24 } // namespace translate |
| 25 |
| 26 #endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
OLD | NEW |