Home | History | Annotate | Download | only in browser

Lines Matching refs:FAVICON

29     case FaviconURL::FAVICON:
30 return history::FAVICON;
71 icon_types_(icon_type == FAVICON ? history::FAVICON :
97 // Request the favicon from the history service. In parallel to this the
98 // renderer is going to notify us (well TabContents) when the favicon url is
134 if (url == url_ && icon_type == history::FAVICON) {
150 // No matter what happens, we need to mark the favicon as being set.
151 entry->favicon().set_is_valid(true);
156 entry->favicon().set_bitmap(image);
189 // For FAVICON.
190 if (current_candidate()->icon_type == FaviconURL::FAVICON) {
191 if (!favicon_expired_ && entry->favicon().is_valid() &&
192 DoUrlAndIconMatch(*current_candidate(), entry->favicon().url(),
193 history::FAVICON))
196 entry->favicon().set_url(current_candidate()->icon_url);
265 // Otherwise store the favicon if the page is bookmarked.
311 history::FaviconData favicon) {
317 history_icon_ = favicon;
319 favicon_expired_ = (favicon.known_icon && favicon.expired);
321 if (favicon.known_icon && favicon.icon_type == history::FAVICON &&
322 !entry->favicon().is_valid() &&
325 *current_candidate(), favicon.icon_url, favicon.icon_type))) {
326 // The db knows the favicon (although it may be out of date) and the entry
327 // doesn't have an icon. Set the favicon now, and if the favicon turns out
329 // user doesn't see a flash of the default favicon.
330 entry->favicon().set_url(favicon.icon_url);
331 if (favicon.is_valid())
332 UpdateFavicon(entry, favicon.image_data);
333 entry->favicon().set_is_valid(true);
336 if (favicon.known_icon && !favicon.expired) {
339 *current_candidate(), favicon.icon_url, favicon.icon_type)) {
341 // update the mapping for this url and download the favicon if we don't
347 // We know the official url for the favicon, by either don't have the
348 // favicon or its expired. Continue on to DownloadFaviconOrAskHistory to
362 // We have the mapping, but the favicon is out of date. Download it now.
366 // We don't know the favicon, but we may have previously downloaded the
367 // favicon for another page that shares the same favicon. Ask for the
368 // favicon given the favicon URL.
374 // 1. Attempts to fetch the favicon data from the database.
375 // 2. If the favicon exists in the database, this updates the database to
376 // include the mapping between the page url and the favicon url.
387 history::FaviconData favicon) {
392 // No need to update the favicon url. By the time we get here
393 // UpdateFaviconURL will have set the favicon url.
394 if (favicon.icon_type == history::FAVICON) {
395 if (favicon.is_valid()) {
396 // There is a favicon, set it now. If expired we'll download the current
399 UpdateFavicon(entry, favicon.image_data);
401 if (!favicon.known_icon || favicon.expired) {
402 // We don't know the favicon, or it is out of date. Request the current
404 ScheduleDownload(entry->url(), entry->favicon().url(),
406 history::FAVICON, NULL);
408 } else if (current_candidate() && (!favicon.known_icon || favicon.expired ||
410 *current_candidate(), favicon.icon_url, favicon.icon_type)))) {
411 // We don't know the favicon, it is out of date or its type is not same as
417 history_icon_ = favicon;