Page Speed Optimization Libraries  1.12.34.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
net_instaweb::Resource::FreshenCallback Class Reference

#include "resource.h"

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

Public Member Functions

 FreshenCallback (const ResourcePtr &resource)
 
virtual InputInfo * input_info ()
 
virtual void Done (bool lock_failure, bool resource_ok)
 
- Public Member Functions inherited from net_instaweb::Resource::AsyncCallback
 AsyncCallback (const ResourcePtr &resource)
 
const ResourcePtrresource ()
 

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 
)
inlinevirtual

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 ( )
inlinevirtual

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: