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

Side by Side Diff: chrome/browser/metrics/omnibox_metrics_provider.h

Issue 624173002: replace OVERRIDE and FINAL with override and final in chrome/browser/[j-q]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_
6 #define CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_ 6 #define CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.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 "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 13
14 struct OmniboxLog; 14 struct OmniboxLog;
15 15
16 // OmniboxMetricsProvider is responsible for filling out the |omnibox_event| 16 // OmniboxMetricsProvider is responsible for filling out the |omnibox_event|
17 // section of the UMA proto. 17 // section of the UMA proto.
18 class OmniboxMetricsProvider : public metrics::MetricsProvider, 18 class OmniboxMetricsProvider : public metrics::MetricsProvider,
19 public content::NotificationObserver { 19 public content::NotificationObserver {
20 public: 20 public:
21 OmniboxMetricsProvider(); 21 OmniboxMetricsProvider();
22 virtual ~OmniboxMetricsProvider(); 22 virtual ~OmniboxMetricsProvider();
23 23
24 // metrics::MetricsDataProvider: 24 // metrics::MetricsDataProvider:
25 virtual void OnRecordingEnabled() OVERRIDE; 25 virtual void OnRecordingEnabled() override;
26 virtual void OnRecordingDisabled() OVERRIDE; 26 virtual void OnRecordingDisabled() override;
27 virtual void ProvideGeneralMetrics( 27 virtual void ProvideGeneralMetrics(
28 metrics::ChromeUserMetricsExtension* uma_proto) OVERRIDE; 28 metrics::ChromeUserMetricsExtension* uma_proto) override;
29 29
30 private: 30 private:
31 // content::NotificationObserver: 31 // content::NotificationObserver:
32 virtual void Observe(int type, 32 virtual void Observe(int type,
33 const content::NotificationSource& source, 33 const content::NotificationSource& source,
34 const content::NotificationDetails& details) OVERRIDE; 34 const content::NotificationDetails& details) override;
35 35
36 // Records the input text, available choices, and selected entry when the 36 // Records the input text, available choices, and selected entry when the
37 // user uses the Omnibox to open a URL. 37 // user uses the Omnibox to open a URL.
38 void RecordOmniboxOpenedURL(const OmniboxLog& log); 38 void RecordOmniboxOpenedURL(const OmniboxLog& log);
39 39
40 // Registar for receiving Omnibox event notifications. 40 // Registar for receiving Omnibox event notifications.
41 content::NotificationRegistrar registrar_; 41 content::NotificationRegistrar registrar_;
42 42
43 // Saved cache of generated Omnibox event protos, to be copied into the UMA 43 // Saved cache of generated Omnibox event protos, to be copied into the UMA
44 // proto when ProvideGeneralMetrics() is called. 44 // proto when ProvideGeneralMetrics() is called.
45 metrics::ChromeUserMetricsExtension omnibox_events_cache; 45 metrics::ChromeUserMetricsExtension omnibox_events_cache;
46 46
47 DISALLOW_COPY_AND_ASSIGN(OmniboxMetricsProvider); 47 DISALLOW_COPY_AND_ASSIGN(OmniboxMetricsProvider);
48 }; 48 };
49 49
50 #endif // CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_ 50 #endif // CHROME_BROWSER_METRICS_OMNIBOX_METRICS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/metrics_service_browsertest.cc ('k') | chrome/browser/metrics/perf_provider_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698