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

#include "wait_url_async_fetcher.h"

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

List of all members.

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)

Detailed Description

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


Member Function Documentation

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines