Home | History | Annotate | Download | only in search_provider_logos

Lines Matching refs:logo

26 // Returns whether the metadata for the cached logo indicates that the logo is
42 // Reads the logo from the cache and returns it. Returns NULL if the cache is
43 // empty, corrupt, expired, or doesn't apply to the current logo URL.
172 cached_logo_.reset(new Logo());
177 Logo* logo = cached_logo_.get();
178 FOR_EACH_OBSERVER(LogoObserver, logo_observers_, OnLogoAvailable(logo, true));
182 void LogoTracker::SetCachedLogo(scoped_ptr<EncodedLogo> logo) {
187 base::Owned(logo.release())));
215 void LogoTracker::OnFreshLogoParsed(scoped_ptr<EncodedLogo> logo) {
218 if (logo)
219 logo->metadata.source_url = logo_url_.spec();
221 if (!logo || !logo->encoded_image) {
222 OnFreshLogoAvailable(logo.Pass(), SkBitmap());
224 // Store the value of logo->encoded_image for use below. This ensures that
225 // logo->encoded_image is evaulated before base::Passed(&logo), which sets
226 // logo to NULL.
227 scoped_refptr<base::RefCountedString> encoded_image = logo->encoded_image;
232 base::Passed(&logo)));
244 // The cached logo was revalidated, i.e. its fingerprint was verified.
249 scoped_ptr<Logo> logo;
253 logo.reset(new Logo());
254 logo->metadata = encoded_logo->metadata;
255 logo->image = image;
258 // Notify observers if a new logo was fetched, or if the new logo is NULL
259 // but the cached logo was non-NULL.
260 if (logo || cached_logo_) {
263 OnLogoAvailable(logo.get(), false));
298 LOG(WARNING) << "Search provider logo exceeded download size limit";