| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 int size, | 84 int size, |
| 85 const SetImageCallback& callback); | 85 const SetImageCallback& callback); |
| 86 void StartDownloadByKey(const Notification& notification, | 86 void StartDownloadByKey(const Notification& notification, |
| 87 const char* key, | 87 const char* key, |
| 88 int size, | 88 int size, |
| 89 const SetImageCallback& callback); | 89 const SetImageCallback& callback); |
| 90 | 90 |
| 91 // FaviconHelper callback. | 91 // FaviconHelper callback. |
| 92 void DownloadComplete(const SetImageCallback& callback, | 92 void DownloadComplete(const SetImageCallback& callback, |
| 93 int download_id, | 93 int download_id, |
| 94 int http_status_code, |
| 94 const GURL& image_url, | 95 const GURL& image_url, |
| 95 int requested_size, | 96 int requested_size, |
| 96 const std::vector<SkBitmap>& bitmaps); | 97 const std::vector<SkBitmap>& bitmaps); |
| 97 private: | 98 private: |
| 98 // Used to keep track of the number of pending downloads. Once this | 99 // Used to keep track of the number of pending downloads. Once this |
| 99 // reaches zero, we can tell the delegate that we don't need the | 100 // reaches zero, we can tell the delegate that we don't need the |
| 100 // RenderViewHost anymore. | 101 // RenderViewHost anymore. |
| 101 void AddPendingDownload(); | 102 void AddPendingDownload(); |
| 102 void PendingDownloadCompleted(); | 103 void PendingDownloadCompleted(); |
| 103 | 104 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 bool by_user); | 170 bool by_user); |
| 170 | 171 |
| 171 // Returns the ProfileNotification for the |id|, or NULL if no such | 172 // Returns the ProfileNotification for the |id|, or NULL if no such |
| 172 // notification is found. | 173 // notification is found. |
| 173 ProfileNotification* FindProfileNotification(const std::string& id) const; | 174 ProfileNotification* FindProfileNotification(const std::string& id) const; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); | 176 DISALLOW_COPY_AND_ASSIGN(MessageCenterNotificationManager); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ | 179 #endif // CHROME_BROWSER_NOTIFICATIONS_MESSAGE_CENTER_NOTIFICATION_MANAGER_H_ |
| OLD | NEW |