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_HISTORY_HISTORY_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 const std::vector<ui::ScaleFactor>& desired_scale_factors, | 242 const std::vector<ui::ScaleFactor>& desired_scale_factors, |
243 std::vector<chrome::FaviconBitmapResult>* bitmap_results); | 243 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
244 | 244 |
245 void GetFaviconsForURL( | 245 void GetFaviconsForURL( |
246 const GURL& page_url, | 246 const GURL& page_url, |
247 int icon_types, | 247 int icon_types, |
248 int desired_size_in_dip, | 248 int desired_size_in_dip, |
249 const std::vector<ui::ScaleFactor>& desired_scale_factors, | 249 const std::vector<ui::ScaleFactor>& desired_scale_factors, |
250 std::vector<chrome::FaviconBitmapResult>* bitmap_results); | 250 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
251 | 251 |
| 252 void GetLargestFaviconForURL( |
| 253 const GURL& page_url, |
| 254 const std::vector<int>& icon_types, |
| 255 int minimal_size_in_pixel, |
| 256 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
| 257 |
252 void GetFaviconForID( | 258 void GetFaviconForID( |
253 chrome::FaviconID favicon_id, | 259 chrome::FaviconID favicon_id, |
254 int desired_size_in_dip, | 260 int desired_size_in_dip, |
255 ui::ScaleFactor desired_scale_factor, | 261 ui::ScaleFactor desired_scale_factor, |
256 std::vector<chrome::FaviconBitmapResult>* bitmap_results); | 262 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
257 | 263 |
258 void UpdateFaviconMappingsAndFetch( | 264 void UpdateFaviconMappingsAndFetch( |
259 const GURL& page_url, | 265 const GURL& page_url, |
260 const std::vector<GURL>& icon_urls, | 266 const std::vector<GURL>& icon_urls, |
261 int icon_types, | 267 int icon_types, |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 | 914 |
909 // Listens for the system being under memory pressure. | 915 // Listens for the system being under memory pressure. |
910 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 916 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
911 | 917 |
912 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 918 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
913 }; | 919 }; |
914 | 920 |
915 } // namespace history | 921 } // namespace history |
916 | 922 |
917 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 923 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |