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

Side by Side Diff: chrome/browser/ui/webui/favicon_source.h

Issue 2535463002: [Favicon] Stop caching the default favicon (Closed)
Patch Set: Remove the unused favicon_index Created 4 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
« no previous file with comments | « AUTHORS ('k') | chrome/browser/ui/webui/favicon_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_UI_WEBUI_FAVICON_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // Sends the 16x16 DIP 1x default favicon. 121 // Sends the 16x16 DIP 1x default favicon.
122 void SendDefaultResponse( 122 void SendDefaultResponse(
123 const content::URLDataSource::GotDataCallback& callback); 123 const content::URLDataSource::GotDataCallback& callback);
124 124
125 // Sends the default favicon. 125 // Sends the default favicon.
126 void SendDefaultResponse(const IconRequest& request); 126 void SendDefaultResponse(const IconRequest& request);
127 127
128 base::CancelableTaskTracker cancelable_task_tracker_; 128 base::CancelableTaskTracker cancelable_task_tracker_;
129 129
130 // Raw PNG representations of favicons of each size to show when the favicon
131 // database doesn't have a favicon for a webpage. Indexed by IconSize values.
132 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES];
133
134 // The favicon_base::IconTypes of icon that this FaviconSource handles. 130 // The favicon_base::IconTypes of icon that this FaviconSource handles.
135 int icon_types_; 131 int icon_types_;
136 132
137 DISALLOW_COPY_AND_ASSIGN(FaviconSource); 133 DISALLOW_COPY_AND_ASSIGN(FaviconSource);
138 }; 134 };
139 135
140 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 136 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | chrome/browser/ui/webui/favicon_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698