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

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

Issue 2913593002: Implementation of translation event logging. (Closed)
Patch Set: fix Created 3 years, 6 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..1e6e16aec85646f6680b481aa6688a32c0c52974
--- /dev/null
+++ b/components/translate/core/common/translation_logging_helper.h
@@ -0,0 +1,29 @@
+// 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_
+
+#include <stdint.h>
+
+namespace metrics {
+class TranslateEventProto;
+} // namespace metrics
+
+namespace sync_pb {
+class UserEventSpecifics;
+} // namespace sync_pb
+
+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(
+ int64_t navigation_id,
+ const metrics::TranslateEventProto& translate_event,
+ sync_pb::UserEventSpecifics* const specifics);
+} // namespace translate
+
+#endif // COMPONENTS_TRANSLATE_CORE_COMMON_TRANSLATION_LOGGING_HELPER_H_
« no previous file with comments | « components/translate/core/common/BUILD.gn ('k') | components/translate/core/common/translation_logging_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698