#include "wait_url_async_fetcher.h"
Public Member Functions | |
WaitUrlAsyncFetcher (UrlFetcher *url_fetcher, AbstractMutex *mutex) | |
virtual bool | StreamingFetch (const GoogleString &url, const RequestHeaders &request_headers, ResponseHeaders *response_headers, Writer *response_writer, MessageHandler *message_handler, Callback *callback) |
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 blocking 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.