Index: components/translate/core/common/translation_logging_helper.h |
diff --git a/components/translate/core/common/translation_logging_helper.h b/components/translate/core/common/translation_logging_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b0f97ab5d2413a97d3d6c1d2a2ff731386de13c |
--- /dev/null |
+++ b/components/translate/core/common/translation_logging_helper.h |
@@ -0,0 +1,26 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
+#define COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |
+ |
+namespace metrics { |
+class TranslateEventProto; |
+} |
+ |
+namespace sync_pb { |
+class UserEventSpecifics; |
+} |
+ |
+namespace translate { |
+ |
+// Construct the sync_pb::Translation proto. |
+// If the event is the event that we care about, will return true, otherwise, |
+// will return false. |
+bool ConstructTranslateEvent( |
+ const metrics::TranslateEventProto& translate_event, |
+ sync_pb::UserEventSpecifics* const specifics); |
+} // namespace translate |
+ |
+#endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_ |