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

Side by Side Diff: chrome/browser/notifications/google_now_notification_stats_collector.h

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h"
10 #include "ui/message_center/message_center.h" 11 #include "ui/message_center/message_center.h"
11 #include "ui/message_center/message_center_observer.h" 12 #include "ui/message_center/message_center_observer.h"
12 #include "ui/message_center/message_center_types.h" 13 #include "ui/message_center/message_center_types.h"
13 14
14 // The Google Now Notification Stats Collector listens for message center 15 // The Google Now Notification Stats Collector listens for message center
15 // events and records stats about Google Now specific notifications. 16 // events and records stats about Google Now specific notifications.
16 class GoogleNowNotificationStatsCollector 17 class GoogleNowNotificationStatsCollector
17 : public message_center::MessageCenterObserver { 18 : public message_center::MessageCenterObserver {
18 public: 19 public:
19 explicit GoogleNowNotificationStatsCollector( 20 explicit GoogleNowNotificationStatsCollector(
(...skipping 14 matching lines...) Expand all
34 // Returns true if the ID of a visible notification is for Google Now. 35 // Returns true if the ID of a visible notification is for Google Now.
35 bool IsVisibleNotificationIdForGoogleNow(const std::string& notification_id); 36 bool IsVisibleNotificationIdForGoogleNow(const std::string& notification_id);
36 37
37 // Weak, global. 38 // Weak, global.
38 message_center::MessageCenter* message_center_; 39 message_center::MessageCenter* message_center_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(GoogleNowNotificationStatsCollector); 41 DISALLOW_COPY_AND_ASSIGN(GoogleNowNotificationStatsCollector);
41 }; 42 };
42 43
43 #endif // CHROME_BROWSER_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_ H_ 44 #endif // CHROME_BROWSER_NOTIFICATIONS_GOOGLE_NOW_NOTIFICATION_STATS_COLLECTOR_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698