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

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

Issue 1509923002: Implement native web notifications for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 ProfileID profile_id) const override; 52 ProfileID profile_id) const override;
53 bool CancelById(const std::string& delegate_id, 53 bool CancelById(const std::string& delegate_id,
54 ProfileID profile_id) override; 54 ProfileID profile_id) override;
55 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 55 std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
56 ProfileID profile_id, 56 ProfileID profile_id,
57 const GURL& source) override; 57 const GURL& source) override;
58 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override; 58 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override;
59 bool CancelAllBySourceOrigin(const GURL& source_origin) override; 59 bool CancelAllBySourceOrigin(const GURL& source_origin) override;
60 bool CancelAllByProfile(ProfileID profile_id) override; 60 bool CancelAllByProfile(ProfileID profile_id) override;
61 void CancelAll() override; 61 void CancelAll() override;
62 bool AcceptNativeNotifications() override;
62 63
63 // MessageCenterObserver 64 // MessageCenterObserver
64 void OnNotificationRemoved(const std::string& notification_id, 65 void OnNotificationRemoved(const std::string& notification_id,
65 bool by_user) override; 66 bool by_user) override;
66 void OnCenterVisibilityChanged(message_center::Visibility) override; 67 void OnCenterVisibilityChanged(message_center::Visibility) override;
67 void OnNotificationUpdated(const std::string& notification_id) override; 68 void OnNotificationUpdated(const std::string& notification_id) override;
68 69
69 void EnsureMessageCenterClosed(); 70 void EnsureMessageCenterClosed();
70 71
71 // Takes ownership of |delegate|. 72 // Takes ownership of |delegate|.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 // Keeps track of all notification statistics for UMA purposes. 118 // Keeps track of all notification statistics for UMA purposes.
118 MessageCenterStatsCollector stats_collector_; 119 MessageCenterStatsCollector stats_collector_;
119 120
120 // Keeps track of notifications specific to Google Now for UMA purposes. 121 // Keeps track of notifications specific to Google Now for UMA purposes.
121 GoogleNowNotificationStatsCollector google_now_stats_collector_; 122 GoogleNowNotificationStatsCollector google_now_stats_collector_;
122 123
123 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 124 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
124 }; 125 };
125 126
126 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 127 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698