Page Speed Optimization Libraries
1.13.35.1
|
#include "wait_url_async_fetcher.h"
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 |
AsyncFetch * | EnableInflation (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 () | |
Fake UrlAsyncFetcher which waits to call underlying fetcher until you explicitly call CallCallbacks().
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.