Page Speed Optimization Libraries
1.7.30.3
|
#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) |
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.