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

Unified Diff: components/translate/core/browser/translate_client.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/browser/translate_client.h
diff --git a/components/translate/core/browser/translate_client.h b/components/translate/core/browser/translate_client.h
index 1225a27e852910e0c346317804eae46af17626bf..eda29a1929451e802b5cf3a69a3069008ef2dd31 100644
--- a/components/translate/core/browser/translate_client.h
+++ b/components/translate/core/browser/translate_client.h
@@ -18,7 +18,11 @@ class PrefService;
namespace infobars {
class InfoBar;
-}
+} // namespace infobars
+
+namespace metrics {
+class TranslateEventProto;
+} // namespace metrics
namespace translate {
@@ -50,6 +54,12 @@ class TranslateClient {
// Returns the resource ID of the icon to be shown for the Translate infobars.
virtual int GetInfobarIconID() const = 0;
+ // Record translate event.
+ // This is for user ID keyed event logging.
+ // This function will take metrics::TranslateEventProto and log the evnet that
+ // we care about.
+ virtual void RecordTranslateEvent(const metrics::TranslateEventProto&) = 0;
+
#if !defined(USE_AURA)
// Returns a translate infobar that owns |delegate|.
virtual std::unique_ptr<infobars::InfoBar> CreateInfoBar(
« no previous file with comments | « components/translate/core/browser/mock_translate_client.h ('k') | components/translate/core/browser/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698