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

Side by Side Diff: components/history/core/browser/thumbnail_database.h

Issue 2828173002: [Refactor] Simplify HistoryBackend::UpdateFaviconMappingsAndFetchImpl() signature (Closed)
Patch Set: Merge branch 'master' into icon_type0 Created 3 years, 7 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_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Returns true if successful. 122 // Returns true if successful.
123 bool DeleteFaviconBitmap(FaviconBitmapID bitmap_id); 123 bool DeleteFaviconBitmap(FaviconBitmapID bitmap_id);
124 124
125 // Favicons ------------------------------------------------------------------ 125 // Favicons ------------------------------------------------------------------
126 126
127 // Sets the the favicon as out of date. This will set |last_updated| for all 127 // Sets the the favicon as out of date. This will set |last_updated| for all
128 // of the bitmaps for |icon_id| to be out of date. 128 // of the bitmaps for |icon_id| to be out of date.
129 bool SetFaviconOutOfDate(favicon_base::FaviconID icon_id); 129 bool SetFaviconOutOfDate(favicon_base::FaviconID icon_id);
130 130
131 // Returns the id of the entry in the favicon database with the specified url 131 // Returns the id of the entry in the favicon database with the specified url
132 // and icon type. If |required_icon_type| contains multiple icon types and 132 // and icon type.
133 // there are more than one matched icon in database, only one icon will be
134 // returned in the priority of TOUCH_PRECOMPOSED_ICON, TOUCH_ICON, and
135 // FAVICON, and the icon type is returned in icon_type parameter if it is not
136 // NULL.
137 // Returns 0 if no entry exists for the specified url. 133 // Returns 0 if no entry exists for the specified url.
138 favicon_base::FaviconID GetFaviconIDForFaviconURL( 134 favicon_base::FaviconID GetFaviconIDForFaviconURL(
139 const GURL& icon_url, 135 const GURL& icon_url,
140 int required_icon_type, 136 favicon_base::IconType icon_type);
141 favicon_base::IconType* icon_type);
142 137
143 // Gets the icon_url, icon_type and sizes for the specified |icon_id|. 138 // Gets the icon_url, icon_type and sizes for the specified |icon_id|.
144 bool GetFaviconHeader(favicon_base::FaviconID icon_id, 139 bool GetFaviconHeader(favicon_base::FaviconID icon_id,
145 GURL* icon_url, 140 GURL* icon_url,
146 favicon_base::IconType* icon_type); 141 favicon_base::IconType* icon_type);
147 142
148 // Adds favicon with |icon_url|, |icon_type| and |favicon_sizes| to the 143 // Adds favicon with |icon_url|, |icon_type| and |favicon_sizes| to the
149 // favicon db, returning its id. 144 // favicon db, returning its id.
150 favicon_base::FaviconID AddFavicon(const GURL& icon_url, 145 favicon_base::FaviconID AddFavicon(const GURL& icon_url,
151 favicon_base::IconType icon_type); 146 favicon_base::IconType icon_type);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 267
273 sql::Connection db_; 268 sql::Connection db_;
274 sql::MetaTable meta_table_; 269 sql::MetaTable meta_table_;
275 270
276 HistoryBackendClient* backend_client_; 271 HistoryBackendClient* backend_client_;
277 }; 272 };
278 273
279 } // namespace history 274 } // namespace history
280 275
281 #endif // COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 276 #endif // COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698