18 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_BEACON_CRITICAL_IMAGES_FINDER_H_
19 #define NET_INSTAWEB_REWRITER_PUBLIC_BEACON_CRITICAL_IMAGES_FINDER_H_
23 #include "net/instaweb/util/public/property_cache.h"
27 namespace net_instaweb {
49 return kBeaconPercentSeenForCritical;
53 return kBeaconImageSupportInterval;
61 const StringSet* html_critical_images_set,
62 const StringSet* css_critical_images_set,
63 const RenderedImages* rendered_images_set,
64 const StringPiece& nonce,
83 static const int kBeaconPercentSeenForCritical = 80;
85 static const int kBeaconImageSupportInterval = 10;
Abstract interface for implementing a PropertyPage.
Definition: property_cache.h:291
virtual void ComputeCriticalImages(RewriteDriver *driver)
Compute the critical images for the driver's url.
Definition: beacon_critical_images_finder.h:56
Definition: property_cache.h:186
Definition: critical_images_finder.h:65
virtual void UpdateCandidateImagesForBeaconing(const StringSet &images, RewriteDriver *driver, bool beaconing)
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
static bool UpdateCriticalImagesCacheEntry(const StringSet *html_critical_images_set, const StringSet *css_critical_images_set, const RenderedImages *rendered_images_set, const StringPiece &nonce, const PropertyCache::Cohort *cohort, AbstractPropertyPage *page, Timer *timer)
Definition: beacon_critical_images_finder.h:37
const PropertyCache::Cohort * cohort() const
Definition: critical_images_finder.h:152
BeaconCriticalImagesFinder(const PropertyCache::Cohort *cohort, NonceGenerator *nonce_generator, Statistics *stats)
All constructor args are owned by the caller.
virtual bool ShouldBeacon(RewriteDriver *driver)
Availability
Definition: critical_images_finder.h:67
virtual Availability Available(RewriteDriver *driver)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
virtual BeaconMetadata PrepareForBeaconInsertion(RewriteDriver *driver)
Definition: rewrite_driver.h:100
virtual int PercentSeenForCritical() const
Definition: beacon_critical_images_finder.h:48
Definition: nonce_generator.h:28
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27
virtual int SupportInterval() const
Definition: beacon_critical_images_finder.h:52