#include "critical_selector_finder.h"
|
static const char | kCriticalSelectorsValidCount [] |
|
static const char | kCriticalSelectorsExpiredCount [] |
|
static const char | kCriticalSelectorsNotFoundCount [] |
|
static const char | kCriticalSelectorsPropertyName [] |
|
Interface to store/retrieve critical selector information in the property cache. See critical_finder_support_util.h for a description on how critical selectors are stored and updated.
All of the passed-in constructor arguments are owned by the caller. If critical selector data is being received from a trusted source (ShouldReplacePriorResult() must return true in this case), nonce_generator may be NULL.
BeaconMetadata net_instaweb::CriticalSelectorFinder::PrepareForBeaconInsertion |
( |
const StringSet & |
selector_set, |
|
|
RewriteDriver * |
driver |
|
) |
| |
Given a set of candidate critical selectors, decide whether beaconing should take place. We should always beacon if there's new critical selector data. Otherwise re-beaconing is based on a time and request interval. Returns the BeaconMetadata; result.status indicates whether beaconing should occur.
virtual void net_instaweb::CriticalSelectorFinder::WriteCriticalSelectorsToPropertyCache |
( |
const StringSet & |
selector_set, |
|
|
StringPiece |
nonce, |
|
|
RewriteDriver * |
driver |
|
) |
| |
|
virtual |
Updates the critical selectors in the property cache. Support for the new selector_set is added to the existing record of beacon support. This updates the value in the in-memory property page but does not write the cohort. If results are obtained from a trusted source (ShouldReplacePriorResult() must return true) then nonce may be NULL.
As above, but suitable for use in a beacon context where no RewriteDriver is available.
The documentation for this class was generated from the following file: