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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 // Favicon ------------------------------------------------------------------- | 237 // Favicon ------------------------------------------------------------------- |
238 | 238 |
239 void GetFavicons(const std::vector<GURL>& icon_urls, | 239 void GetFavicons(const std::vector<GURL>& icon_urls, |
240 int icon_types, | 240 int icon_types, |
241 int desired_size_in_dip, | 241 int desired_size_in_dip, |
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 const std::vector<int>& icon_types_priority, |
sky
2013/10/08 23:47:52
icon_types_priority->icon_types
michaelbai
2013/10/10 05:51:43
As element of the list could be a composition of i
sky
2013/10/10 20:35:12
I don't get this. Why do we need the ability to su
michaelbai
2013/10/10 22:39:58
The use case is we want use favicon first if it is
| |
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 int threshold_for_next_icon_types, | |
250 std::vector<chrome::FaviconBitmapResult>* bitmap_results); | 251 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
251 | 252 |
252 void GetFaviconForID( | 253 void GetFaviconForID( |
253 chrome::FaviconID favicon_id, | 254 chrome::FaviconID favicon_id, |
254 int desired_size_in_dip, | 255 int desired_size_in_dip, |
255 ui::ScaleFactor desired_scale_factor, | 256 ui::ScaleFactor desired_scale_factor, |
256 std::vector<chrome::FaviconBitmapResult>* bitmap_results); | 257 std::vector<chrome::FaviconBitmapResult>* bitmap_results); |
257 | 258 |
258 void UpdateFaviconMappingsAndFetch( | 259 void UpdateFaviconMappingsAndFetch( |
259 const GURL& page_url, | 260 const GURL& page_url, |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
909 | 910 |
910 // Listens for the system being under memory pressure. | 911 // Listens for the system being under memory pressure. |
911 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 912 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
912 | 913 |
913 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); | 914 DISALLOW_COPY_AND_ASSIGN(HistoryBackend); |
914 }; | 915 }; |
915 | 916 |
916 } // namespace history | 917 } // namespace history |
917 | 918 |
918 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ | 919 #endif // CHROME_BROWSER_HISTORY_HISTORY_BACKEND_H_ |
OLD | NEW |