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

Side by Side Diff: chrome/browser/google/google_search_counter_android.h

Issue 342053002: Add UMA metrics for Android Chrome Google Search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_SEARCH_COUNTER_ANDROID_H_
6 #define CHROME_BROWSER_GOOGLE_GOOGLE_SEARCH_COUNTER_ANDROID_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11
12 class Profile;
13
14 // A listener for counting Google searches in Android Chrome from various search
15 // access points. No actual search query content is observed. See
16 // GoogleSearchMetrics for more details about these access points.
17 class GoogleSearchCounterAndroid : content::NotificationObserver {
18 public:
19 explicit GoogleSearchCounterAndroid(Profile* profile);
20 virtual ~GoogleSearchCounterAndroid();
21
22 private:
23 void ProcessCommittedEntry(const content::NotificationSource& source,
24 const content::NotificationDetails& details);
25
26 // content::NotificationObserver
Peter Kasting 2014/06/19 21:20:32 Nit: Add trailing colon
kmadhusu 2014/06/19 22:52:49 Done.
27 virtual void Observe(int type,
28 const content::NotificationSource& source,
29 const content::NotificationDetails& details) OVERRIDE;
30
31 Profile* profile_;
32 content::NotificationRegistrar registrar_;
33
34 DISALLOW_COPY_AND_ASSIGN(GoogleSearchCounterAndroid);
35 };
36
37 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_SEARCH_COUNTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698