Page Speed Optimization Libraries  1.3.25.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::Resource::FreshenCallback Class Reference

#include "resource.h"

Inheritance diagram for net_instaweb::Resource::FreshenCallback:
net_instaweb::Resource::AsyncCallback

List of all members.

Public Member Functions

 FreshenCallback (const ResourcePtr &resource)
virtual InputInfo * input_info ()
virtual void Done (bool lock_failure, bool resource_ok)

Detailed Description

An AsyncCallback for a freshen. The Done() callback in the default implementation deletes itself.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines