net_instaweb::SharedAsyncFetch Class Reference

#include "async_fetch.h"

Inheritance diagram for net_instaweb::SharedAsyncFetch:
net_instaweb::AsyncFetch net_instaweb::Writer net_instaweb::ConditionalSharedAsyncFetch net_instaweb::FallbackSharedAsyncFetch net_instaweb::InflatingFetch net_instaweb::ProxyFetch net_instaweb::RecordingFetch net_instaweb::ResourceFetch

List of all members.

Public Member Functions

 SharedAsyncFetch (AsyncFetch *base_fetch)
AsyncFetchbase_fetch ()
const AsyncFetchbase_fetch () const

Protected Member Functions

virtual void HandleDone (bool success)
virtual bool HandleWrite (const StringPiece &content, MessageHandler *handler)
virtual bool HandleFlush (MessageHandler *handler)
virtual void HandleHeadersComplete ()
virtual bool EnableThreaded () const
virtual bool IsCachedResultValid (const ResponseHeaders &headers)
virtual bool IsBackgroundFetch () const

Detailed Description

Creates an AsyncFetch object using an existing AsyncFetcher*, sharing the response & request headers, and by default delegating all 4 Handle methods to the base fetcher. Any one of them can be overridden by inheritors of this class.


Member Function Documentation

virtual bool net_instaweb::SharedAsyncFetch::IsBackgroundFetch (  )  const [inline, protected, virtual]

Indicates whether the request is a background fetch. These can be scheduled differently by the fetcher.

Reimplemented from net_instaweb::AsyncFetch.

virtual bool net_instaweb::SharedAsyncFetch::IsCachedResultValid ( const ResponseHeaders headers  )  [inline, protected, virtual]

Is the cache entry corresponding to headers valid? Default is that it is valid. Sub-classes can provide specific implementations, e.g., based on cache invalidation timestamp in domain specific options. Used by CacheUrlAsyncFetcher.

Todo:
TODO(nikhilmadan): Consider making this virtual so that subclass authors are forced to look at this function.

Reimplemented from net_instaweb::AsyncFetch.

Reimplemented in net_instaweb::ProxyFetch.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:52 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3