Index: chrome/browser/ui/webui/ntp/ntp_user_data_logger.h |
diff --git a/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h b/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h |
index fc0923a522a84be1fb784d2d57c65a7d990b4979..718fa1fa03c533a2de4dcfd747cf532423e13e57 100644 |
--- a/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h |
+++ b/chrome/browser/ui/webui/ntp/ntp_user_data_logger.h |
@@ -5,6 +5,9 @@ |
#ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
#define CHROME_BROWSER_UI_WEBUI_NTP_NTP_USER_DATA_LOGGER_H_ |
+#include <string> |
+ |
+#include "base/strings/string16.h" |
#include "chrome/common/ntp_logging_events.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/browser/web_contents_user_data.h" |
@@ -23,6 +26,16 @@ class NTPUserDataLogger |
static NTPUserDataLogger* GetOrCreateFromWebContents( |
content::WebContents* content); |
+ // Returns the name of the histogram that should be logged for an impression |
+ // of a specified Most Visited |provider|. |
+ static std::string GetMostVisitedImpressionHistogramNameForProvider( |
+ const std::string& provider); |
+ |
+ // Returns the name of the histogram that should be logged for a navigation |
+ // to a specified Most Visited |provider|. |
+ static std::string GetMostVisitedNavigationHistogramNameForProvider( |
+ const std::string& provider); |
+ |
// Logs a number of statistics regarding the NTP. Called when an NTP tab is |
// about to be deactivated (be it by switching tabs, losing focus or closing |
// the tab/shutting down Chrome), or when the user navigates to a URL. |
@@ -33,7 +46,10 @@ class NTPUserDataLogger |
void LogEvent(NTPLoggingEventType event); |
// Logs an impression on one of the Most Visited tiles by a given provider. |
- void LogImpression(int position, const base::string16& provider); |
+ void LogMostVisitedImpression(int position, const base::string16& provider); |
+ |
+ // Logs a navigation on one of the Most Visited tiles by a given provider. |
+ void LogMostVisitedNavigation(int position, const base::string16& provider); |
// content::WebContentsObserver override |
virtual void NavigationEntryCommitted( |