22 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_BEACON_CRITICAL_LINE_INFO_FINDER_H_
23 #define NET_INSTAWEB_REWRITER_PUBLIC_BEACON_CRITICAL_LINE_INFO_FINDER_H_
28 #include "net/instaweb/util/public/property_cache.h"
29 #include "pagespeed/kernel/base/basictypes.h"
30 #include "pagespeed/kernel/base/string_util.h"
32 namespace net_instaweb {
61 static const char kBeaconCriticalLineInfoPropertyName[];
64 NonceGenerator* nonce_generator);
73 const StringSet& xpaths_set, StringPiece nonce,
74 const PropertyCache* cache,
const PropertyCache::Cohort* cohort,
75 AbstractPropertyPage* page, MessageHandler* message_handler,
83 static const int kDefaultSupportInterval = 10;
85 virtual int SupportInterval()
const {
return kDefaultSupportInterval; }
87 NonceGenerator* nonce_generator_;
virtual void UpdateInDriver(RewriteDriver *driver)
Updates the critical line information in the driver.
virtual BeaconMetadata PrepareForBeaconInsertion(RewriteDriver *driver)
Definition: beacon_critical_line_info_finder.h:59
Definition: rewrite_driver.h:98
static void WriteXPathsToPropertyCacheFromBeacon(const StringSet &xpaths_set, StringPiece nonce, const PropertyCache *cache, const PropertyCache::Cohort *cohort, AbstractPropertyPage *page, MessageHandler *message_handler, Timer *timer)
Definition: critical_line_info_finder.h:37
const PropertyCache::Cohort * cohort() const
Returns the cohort in pcache which stores the critical line info.
Definition: critical_line_info_finder.h:45