Index: chrome/browser/metrics/chrome_metrics_service_client.h |
diff --git a/chrome/browser/metrics/chrome_metrics_service_client.h b/chrome/browser/metrics/chrome_metrics_service_client.h |
index ee879a5b65efa9768b768de5342327046f544a34..1500649d9317d51157831c99676e95d9c0162dd7 100644 |
--- a/chrome/browser/metrics/chrome_metrics_service_client.h |
+++ b/chrome/browser/metrics/chrome_metrics_service_client.h |
@@ -16,6 +16,7 @@ |
#include "chrome/browser/metrics/metrics_memory_details.h" |
#include "components/metrics/metrics_service_client.h" |
#include "components/metrics/profiler/tracking_synchronizer_observer.h" |
+#include "components/omnibox/browser/omnibox_event_global_tracker.h" |
#include "content/public/browser/notification_observer.h" |
#include "content/public/browser/notification_registrar.h" |
@@ -127,6 +128,9 @@ class ChromeMetricsServiceClient |
const content::NotificationSource& source, |
const content::NotificationDetails& details) override; |
+ // Called when a URL is opened from the Omnibox. |
+ void OnURLOpenedFromOmnibox(OmniboxLog* log); |
+ |
#if defined(OS_WIN) |
// Counts (and removes) the browser crash dump attempt signals left behind by |
// any previous browser processes which generated a crash dump. |
@@ -194,6 +198,11 @@ class ChromeMetricsServiceClient |
base::ScopedPtrMap<int, scoped_ptr<ProcessResourceUsage>> |
host_resource_usage_map_; |
+ // Subscription for receiving callbacks that a URL was opened from the |
+ // omnibox. |
+ scoped_ptr<base::CallbackList<void(OmniboxLog*)>::Subscription> |
+ omnibox_url_opened_subscription_; |
+ |
base::WeakPtrFactory<ChromeMetricsServiceClient> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(ChromeMetricsServiceClient); |