Home | History | Annotate | Download | only in search_provider_logos

Lines Matching refs:logo

31 // Receives updates when the search provider's logo is available.
36 // Called when the cached logo is available and possibly when a freshly
37 // downloaded logo is available. |logo| will be NULL if no logo is available.
38 // |from_cache| indicates whether the logo was loaded from the cache.
40 // If the fresh logo is the same as the cached logo, this will not be called
42 virtual void OnLogoAvailable(const Logo* logo, bool from_cache) = 0;
45 // LogoObserver. For example: after the cached logo is validated, after
73 // Encodes the fingerprint of the cached logo in the logo URL. This enables the
74 // server to verify whether the cached logo is up-to-date.
79 // This class provides the logo for a search provider. Logos are downloaded from
80 // the search provider's logo URL and cached on disk.
82 // Call SetServerAPI() at least once to specify how to get the logo from the
83 // server. Then call GetLogo() to trigger retrieval of the logo and receive
90 // |cached_logo_directory| is the directory in which the cached logo and its
100 // the logo.
110 // Defines the server API for downloading and parsing the logo. This must be
113 // |logo_url| is the URL from which the logo will be downloaded. If |logo_url|
114 // is different than the current logo URL, any pending LogoObservers will be
119 // callback that will return the URL from which to download the logo if a
120 // cached logo with a fingerprint is already available. Note:
127 // Retrieves the current search provider's logo from the local cache and/or
144 // variables that change as the logo is fetched.
147 // Called when the cached logo has been read from the cache. |cached_logo|
148 // will be NULL if there wasn't a valid, up-to-date logo in the cache.
151 // Called when the cached logo has been decoded into an SkBitmap. |image| will
156 // Stores |logo| in the cache.
157 void SetCachedLogo(scoped_ptr<EncodedLogo> logo);
159 // Updates the metadata for the logo already stored in the cache.
162 // Starts fetching the current logo over the network.
165 // Called when the logo has been downloaded and parsed. |logo| will be NULL
167 void OnFreshLogoParsed(scoped_ptr<EncodedLogo> logo);
169 // Called when the fresh logo has been decoded into an SkBitmap. |image| will
171 void OnFreshLogoAvailable(scoped_ptr<EncodedLogo> logo,
180 // The URL from which the logo is fetched.
183 // The function used to parse the logo response from the server.
186 // The function used to include the cached logo's fingerprint in the logo URL.
192 // The logo that's been read from the cache, or NULL if the cache is empty.
194 scoped_ptr<Logo> cached_logo_;
196 // Whether the value of |cached_logo_| reflects the actual cached logo.
197 // This will be false if the logo hasn't been read from the cache yet.
199 // logo is cached.
202 // The URLFetcher currently fetching the logo. NULL when not fetching.
205 // The list of observers to be notified when the logo is available. This
211 // The cache used to persist the logo on disk. Used only on the file thread.