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

Side by Side Diff: components/favicon/core/favicon_service_impl.h

Issue 2856873002: [Thumbnails DB] Allow setting last_requested time when accessing favicons. (Closed)
Patch Set: Peter's comments Created 3 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
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 COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_
6 #define COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_ 6 #define COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 const GURL& icon_url, 84 const GURL& icon_url,
85 favicon_base::IconType icon_type, 85 favicon_base::IconType icon_type,
86 int desired_size_in_dip, 86 int desired_size_in_dip,
87 const favicon_base::FaviconResultsCallback& callback, 87 const favicon_base::FaviconResultsCallback& callback,
88 base::CancelableTaskTracker* tracker) override; 88 base::CancelableTaskTracker* tracker) override;
89 base::CancelableTaskTracker::TaskId GetLargestRawFaviconForID( 89 base::CancelableTaskTracker::TaskId GetLargestRawFaviconForID(
90 favicon_base::FaviconID favicon_id, 90 favicon_base::FaviconID favicon_id,
91 const favicon_base::FaviconRawBitmapCallback& callback, 91 const favicon_base::FaviconRawBitmapCallback& callback,
92 base::CancelableTaskTracker* tracker) override; 92 base::CancelableTaskTracker* tracker) override;
93 void SetFaviconOutOfDateForPage(const GURL& page_url) override; 93 void SetFaviconOutOfDateForPage(const GURL& page_url) override;
94 void TouchOnDemandFavicon(const GURL& icon_url) override;
94 void SetImportedFavicons( 95 void SetImportedFavicons(
95 const favicon_base::FaviconUsageDataList& favicon_usage) override; 96 const favicon_base::FaviconUsageDataList& favicon_usage) override;
96 void MergeFavicon(const GURL& page_url, 97 void MergeFavicon(const GURL& page_url,
97 const GURL& icon_url, 98 const GURL& icon_url,
98 favicon_base::IconType icon_type, 99 favicon_base::IconType icon_type,
99 scoped_refptr<base::RefCountedMemory> bitmap_data, 100 scoped_refptr<base::RefCountedMemory> bitmap_data,
100 const gfx::Size& pixel_size) override; 101 const gfx::Size& pixel_size) override;
101 void SetFavicons(const GURL& page_url, 102 void SetFavicons(const GURL& page_url,
102 const GURL& icon_url, 103 const GURL& icon_url,
103 favicon_base::IconType icon_type, 104 favicon_base::IconType icon_type,
104 const gfx::Image& image) override; 105 const gfx::Image& image) override;
105 void SetLastResortFavicons(const GURL& page_url, 106 void SetOnDemandFavicons(const GURL& page_url,
106 const GURL& icon_url, 107 const GURL& icon_url,
107 favicon_base::IconType icon_type, 108 favicon_base::IconType icon_type,
108 const gfx::Image& image, 109 const gfx::Image& image,
109 base::Callback<void(bool)> callback) override; 110 base::Callback<void(bool)> callback) override;
110 void UnableToDownloadFavicon(const GURL& icon_url) override; 111 void UnableToDownloadFavicon(const GURL& icon_url) override;
111 bool WasUnableToDownloadFavicon(const GURL& icon_url) const override; 112 bool WasUnableToDownloadFavicon(const GURL& icon_url) const override;
112 void ClearUnableToDownloadFavicons() override; 113 void ClearUnableToDownloadFavicons() override;
113 114
114 private: 115 private:
115 typedef uint32_t MissingFaviconURLHash; 116 typedef uint32_t MissingFaviconURLHash;
116 117
117 // Helper function for GetFaviconImageForPageURL(), GetRawFaviconForPageURL() 118 // Helper function for GetFaviconImageForPageURL(), GetRawFaviconForPageURL()
118 // and GetFaviconForPageURL(). 119 // and GetFaviconForPageURL().
119 base::CancelableTaskTracker::TaskId GetFaviconForPageURLImpl( 120 base::CancelableTaskTracker::TaskId GetFaviconForPageURLImpl(
(...skipping 26 matching lines...) Expand all
146 base::hash_set<MissingFaviconURLHash> missing_favicon_urls_; 147 base::hash_set<MissingFaviconURLHash> missing_favicon_urls_;
147 std::unique_ptr<FaviconClient> favicon_client_; 148 std::unique_ptr<FaviconClient> favicon_client_;
148 history::HistoryService* history_service_; 149 history::HistoryService* history_service_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(FaviconServiceImpl); 151 DISALLOW_COPY_AND_ASSIGN(FaviconServiceImpl);
151 }; 152 };
152 153
153 } // namespace favicon 154 } // namespace favicon
154 155
155 #endif // COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_ 156 #endif // COMPONENTS_FAVICON_CORE_FAVICON_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/favicon/core/favicon_service.h ('k') | components/favicon/core/favicon_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698