| 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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 618 |
| 619 // Used by FaviconService to find the first favicon bitmap whose width and | 619 // Used by FaviconService to find the first favicon bitmap whose width and |
| 620 // height are greater than that of |minimum_size_in_pixels|. This searches | 620 // height are greater than that of |minimum_size_in_pixels|. This searches |
| 621 // for icons by IconType. Each element of |icon_types| is a bitmask of | 621 // for icons by IconType. Each element of |icon_types| is a bitmask of |
| 622 // IconTypes indicating the types to search for. | 622 // IconTypes indicating the types to search for. |
| 623 // If the largest icon of |icon_types[0]| is not larger than | 623 // If the largest icon of |icon_types[0]| is not larger than |
| 624 // |minimum_size_in_pixel|, the next icon types of | 624 // |minimum_size_in_pixel|, the next icon types of |
| 625 // |icon_types| will be searched and so on. | 625 // |icon_types| will be searched and so on. |
| 626 // If no icon is larger than |minimum_size_in_pixel|, the largest one of all | 626 // If no icon is larger than |minimum_size_in_pixel|, the largest one of all |
| 627 // icon types in |icon_types| is returned. | 627 // icon types in |icon_types| is returned. |
| 628 // This feature is especially useful when some types of icon is perfered as | 628 // This feature is especially useful when some types of icon is preferred as |
| 629 // long as its size is larger than a specific value. | 629 // long as its size is larger than a specific value. |
| 630 base::CancelableTaskTracker::TaskId GetLargestFaviconForURL( | 630 base::CancelableTaskTracker::TaskId GetLargestFaviconForURL( |
| 631 const GURL& page_url, | 631 const GURL& page_url, |
| 632 const std::vector<int>& icon_types, | 632 const std::vector<int>& icon_types, |
| 633 int minimum_size_in_pixels, | 633 int minimum_size_in_pixels, |
| 634 const favicon_base::FaviconRawBitmapCallback& callback, | 634 const favicon_base::FaviconRawBitmapCallback& callback, |
| 635 base::CancelableTaskTracker* tracker); | 635 base::CancelableTaskTracker* tracker); |
| 636 | 636 |
| 637 // Used by the FaviconService to get the favicon bitmap which most closely | 637 // Used by the FaviconService to get the favicon bitmap which most closely |
| 638 // matches |desired_size| from the favicon with |favicon_id| from the history | 638 // matches |desired_size| from the favicon with |favicon_id| from the history |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; | 974 scoped_ptr<history::InMemoryURLIndex> in_memory_url_index_; |
| 975 | 975 |
| 976 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; | 976 ObserverList<history::VisitDatabaseObserver> visit_database_observers_; |
| 977 | 977 |
| 978 history::DeleteDirectiveHandler delete_directive_handler_; | 978 history::DeleteDirectiveHandler delete_directive_handler_; |
| 979 | 979 |
| 980 DISALLOW_COPY_AND_ASSIGN(HistoryService); | 980 DISALLOW_COPY_AND_ASSIGN(HistoryService); |
| 981 }; | 981 }; |
| 982 | 982 |
| 983 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ | 983 #endif // CHROME_BROWSER_HISTORY_HISTORY_SERVICE_H_ |
| OLD | NEW |