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

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: rebase Created 4 years, 11 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 (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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ProfileID profile_id) const override; 53 ProfileID profile_id) const override;
54 bool CancelById(const std::string& delegate_id, 54 bool CancelById(const std::string& delegate_id,
55 ProfileID profile_id) override; 55 ProfileID profile_id) override;
56 std::set<std::string> GetAllIdsByProfileAndSourceOrigin( 56 std::set<std::string> GetAllIdsByProfileAndSourceOrigin(
57 ProfileID profile_id, 57 ProfileID profile_id,
58 const GURL& source) override; 58 const GURL& source) override;
59 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override; 59 std::set<std::string> GetAllIdsByProfile(ProfileID profile_id) override;
60 bool CancelAllBySourceOrigin(const GURL& source_origin) override; 60 bool CancelAllBySourceOrigin(const GURL& source_origin) override;
61 bool CancelAllByProfile(ProfileID profile_id) override; 61 bool CancelAllByProfile(ProfileID profile_id) override;
62 void CancelAll() override; 62 void CancelAll() override;
63 bool AcceptNativeNotifications() override;
63 64
64 // MessageCenterObserver 65 // MessageCenterObserver
65 void OnNotificationRemoved(const std::string& notification_id, 66 void OnNotificationRemoved(const std::string& notification_id,
66 bool by_user) override; 67 bool by_user) override;
67 void OnCenterVisibilityChanged(message_center::Visibility) override; 68 void OnCenterVisibilityChanged(message_center::Visibility) override;
68 void OnNotificationUpdated(const std::string& notification_id) override; 69 void OnNotificationUpdated(const std::string& notification_id) override;
69 70
70 void EnsureMessageCenterClosed(); 71 void EnsureMessageCenterClosed();
71 72
72 // Takes ownership of |delegate|. 73 // Takes ownership of |delegate|.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Keeps track of all notification statistics for UMA purposes. 119 // Keeps track of all notification statistics for UMA purposes.
119 MessageCenterStatsCollector stats_collector_; 120 MessageCenterStatsCollector stats_collector_;
120 121
121 // Keeps track of notifications specific to Google Now for UMA purposes. 122 // Keeps track of notifications specific to Google Now for UMA purposes.
122 GoogleNowNotificationStatsCollector google_now_stats_collector_; 123 GoogleNowNotificationStatsCollector google_now_stats_collector_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 125 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
125 }; 126 };
126 127
127 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 128 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698