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::WaitUrlAsyncFetcher Class Reference

#include "wait_url_async_fetcher.h"

Inheritance diagram for net_instaweb::WaitUrlAsyncFetcher:
net_instaweb::UrlAsyncFetcher

Public Member Functions

 WaitUrlAsyncFetcher (UrlAsyncFetcher *url_fetcher, AbstractMutex *mutex)
 
virtual void Fetch (const GoogleString &url, MessageHandler *handler, AsyncFetch *fetch)
 Initiate fetches that will finish when CallCallbacks is called.
 
void CallCallbacks ()
 Call all callbacks from previously initiated fetches.
 
bool SetPassThroughMode (bool pass_through_mode)
 
void DoNotDelay (const GoogleString &url)
 Makes the given URL be fetched immediately.
 
- Public Member Functions inherited from net_instaweb::UrlAsyncFetcher
virtual bool SupportsHttps () const
 
virtual int64 timeout_ms ()
 
virtual void ShutDown ()
 
void set_fetch_with_gzip (bool x)
 
bool fetch_with_gzip () const
 
AsyncFetchEnableInflation (AsyncFetch *fetch) const
 

Additional Inherited Members

- Static Public Attributes inherited from net_instaweb::UrlAsyncFetcher
static const int64 kUnspecifiedTimeout
 
- Protected Member Functions inherited from net_instaweb::UrlAsyncFetcher
 UrlAsyncFetcher ()
 

Detailed Description

Fake UrlAsyncFetcher which waits to call underlying fetcher until you explicitly call CallCallbacks().

Member Function Documentation

bool net_instaweb::WaitUrlAsyncFetcher::SetPassThroughMode ( bool  pass_through_mode)

Sets a mode where no waiting occurs – fetches propagate immediately. The previous mode is returned. When turning pass-through mode on, any pending callbacks are called.


The documentation for this class was generated from the following file: