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

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

Issue 14322023: Don't request missing favicon on every page request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync up to r199996 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 | Annotate | Revision Log
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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/favicon/favicon_tab_helper.cc ('k') | chrome/browser/notifications/message_center_notification_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698