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

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

Issue 15582004: Move NotificationDelegate into message_center. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win browsertests. Created 7 years, 7 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 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // MessageCenter::Delegate 47 // MessageCenter::Delegate
48 virtual void DisableExtension(const std::string& notification_id) OVERRIDE; 48 virtual void DisableExtension(const std::string& notification_id) OVERRIDE;
49 virtual void DisableNotificationsFromSource( 49 virtual void DisableNotificationsFromSource(
50 const std::string& notification_id) OVERRIDE; 50 const std::string& notification_id) OVERRIDE;
51 virtual void ShowSettings(const std::string& notification_id) OVERRIDE; 51 virtual void ShowSettings(const std::string& notification_id) OVERRIDE;
52 virtual void ShowSettingsDialog(gfx::NativeView context) OVERRIDE; 52 virtual void ShowSettingsDialog(gfx::NativeView context) OVERRIDE;
53 53
54 // MessageCenterObserver 54 // MessageCenterObserver
55 virtual void OnNotificationRemoved(const std::string& notification_id, 55 virtual void OnNotificationRemoved(const std::string& notification_id,
56 bool by_user) OVERRIDE; 56 bool by_user) OVERRIDE;
57 virtual void OnNotificationClicked(
58 const std::string& notification_id) OVERRIDE;
59 virtual void OnNotificationButtonClicked(
60 const std::string& notification_id,
61 int button_index) OVERRIDE;
62 virtual void OnNotificationDisplayed(
63 const std::string& notification_id) OVERRIDE;
64 57
65 private: 58 private:
66 class ImageDownloadsObserver { 59 class ImageDownloadsObserver {
67 public: 60 public:
68 virtual void OnDownloadsCompleted() = 0; 61 virtual void OnDownloadsCompleted() = 0;
69 }; 62 };
70 63
71 typedef base::Callback<void(const gfx::Image&)> SetImageCallback; 64 typedef base::Callback<void(const gfx::Image&)> SetImageCallback;
72 class ImageDownloads 65 class ImageDownloads
73 : public base::SupportsWeakPtr<ImageDownloads> { 66 : public base::SupportsWeakPtr<ImageDownloads> {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool by_user); 163 bool by_user);
171 164
172 // Returns the ProfileNotification for the |id|, or NULL if no such 165 // Returns the ProfileNotification for the |id|, or NULL if no such
173 // notification is found. 166 // notification is found.
174 ProfileNotification* FindProfileNotification(const std::string& id) const; 167 ProfileNotification* FindProfileNotification(const std::string& id) const;
175 168
176 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); 169 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager);
177 }; 170 };
178 171
179 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ 172 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698