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

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

Issue 15907006: Rip out browser-side RID caching for most visited items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 6 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_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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 FRIEND_TEST_ALL_PREFIXES(FaviconSourceTest, Parsing); 110 FRIEND_TEST_ALL_PREFIXES(FaviconSourceTest, Parsing);
111 111
112 // Defines the allowed pixel sizes for requested favicons. 112 // Defines the allowed pixel sizes for requested favicons.
113 enum IconSize { 113 enum IconSize {
114 SIZE_16, 114 SIZE_16,
115 SIZE_32, 115 SIZE_32,
116 SIZE_64, 116 SIZE_64,
117 NUM_SIZES 117 NUM_SIZES
118 }; 118 };
119 119
120 // Parses |raw_path|, which should be in the format described at the top of 120 // Parses |path|, which should be in the format described at the top of the
121 // the file. Returns true if |raw_path| could be parsed. 121 // file. Returns true if |path| could be parsed.
122 bool ParsePath(const std::string& raw_path, 122 bool ParsePath(const std::string& path,
123 bool* is_icon_url, 123 bool* is_icon_url,
124 GURL* url, 124 GURL* url,
125 int* size_in_dip, 125 int* size_in_dip,
126 ui::ScaleFactor* scale_factor) const; 126 ui::ScaleFactor* scale_factor) const;
127 127
128 // Called when favicon data is available from the history backend. 128 // Called when favicon data is available from the history backend.
129 void OnFaviconDataAvailable( 129 void OnFaviconDataAvailable(
130 const IconRequest& request, 130 const IconRequest& request,
131 const chrome::FaviconBitmapResult& bitmap_result); 131 const chrome::FaviconBitmapResult& bitmap_result);
132 132
(...skipping 10 matching lines...) Expand all
143 // database doesn't have a favicon for a webpage. Indexed by IconSize values. 143 // database doesn't have a favicon for a webpage. Indexed by IconSize values.
144 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES]; 144 scoped_refptr<base::RefCountedMemory> default_favicons_[NUM_SIZES];
145 145
146 // The chrome::IconTypes of icon that this FaviconSource handles. 146 // The chrome::IconTypes of icon that this FaviconSource handles.
147 int icon_types_; 147 int icon_types_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(FaviconSource); 149 DISALLOW_COPY_AND_ASSIGN(FaviconSource);
150 }; 150 };
151 151
152 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_ 152 #endif // CHROME_BROWSER_UI_WEBUI_FAVICON_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698