Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Unified Diff: components/translate/core/common/translation_logging_helper.h

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698