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..51f621215f0a2de8b9577303c74a9b6365535698 100644 |
--- a/components/translate/core/browser/translate_client.h |
+++ b/components/translate/core/browser/translate_client.h |
@@ -20,6 +20,10 @@ namespace infobars { |
class InfoBar; |
} |
+namespace metrics { |
+class TranslateEventProto; |
+} // namespace metrics |
+ |
namespace translate { |
class TranslateAcceptLanguages; |
@@ -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( |