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 (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)

Detailed Description

Fake UrlAsyncFetcher which waits to call underlying blocking 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:33:55 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3