OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/macros.h" |
9 #include "components/metrics/metrics_provider.h" | 9 #include "components/metrics/metrics_provider.h" |
10 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" | 10 #include "components/metrics/proto/chrome_user_metrics_extension.pb.h" |
11 #include "components/omnibox/browser/omnibox_event_global_tracker.h" | 11 #include "components/omnibox/browser/omnibox_event_global_tracker.h" |
12 | 12 |
13 struct OmniboxLog; | 13 struct OmniboxLog; |
14 | 14 |
15 // OmniboxMetricsProvider is responsible for filling out the |omnibox_event| | 15 // OmniboxMetricsProvider is responsible for filling out the |omnibox_event| |
16 // section of the UMA proto. | 16 // section of the UMA proto. |
17 class OmniboxMetricsProvider : public metrics::MetricsProvider { | 17 class OmniboxMetricsProvider : public metrics::MetricsProvider { |
18 public: | 18 public: |
(...skipping 23 matching lines...) Expand all Loading... |
42 metrics::ChromeUserMetricsExtension omnibox_events_cache; | 42 metrics::ChromeUserMetricsExtension omnibox_events_cache; |
43 | 43 |
44 // Callback passed in from the embedder that returns whether the user is | 44 // Callback passed in from the embedder that returns whether the user is |
45 // currently operating off-the-record. | 45 // currently operating off-the-record. |
46 const base::Callback<bool(void)> is_off_the_record_callback_; | 46 const base::Callback<bool(void)> is_off_the_record_callback_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(OmniboxMetricsProvider); | 48 DISALLOW_COPY_AND_ASSIGN(OmniboxMetricsProvider); |
49 }; | 49 }; |
50 | 50 |
51 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ | 51 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_METRICS_PROVIDER_H_ |
OLD | NEW |