Page Speed Optimization Libraries
1.4.26.1
|
#include "resource.h"
Public Member Functions | |
FreshenCallback (const ResourcePtr &resource) | |
virtual InputInfo * | input_info () |
virtual void | Done (bool lock_failure, bool resource_ok) |
An AsyncCallback for a freshen. The Done() callback in the default implementation deletes itself.
virtual void net_instaweb::Resource::FreshenCallback::Done | ( | bool | lock_failure, |
bool | resource_ok | ||
) | [inline, virtual] |
This is called with resource_ok = true only if the hash of the fetched response is the same as the hash in input_info()->input_content_hash().
Implements net_instaweb::Resource::AsyncCallback.
virtual InputInfo* net_instaweb::Resource::FreshenCallback::input_info | ( | ) | [inline, virtual] |
Returns NULL by default. Sublasses should override this if they want this to be updated based on the response fetched while freshening.