23 #ifndef NET_INSTAWEB_REWRITER_PUBLIC_RESOURCE_FETCH_H_
24 #define NET_INSTAWEB_REWRITER_PUBLIC_RESOURCE_FETCH_H_
27 #include "net/instaweb/http/public/request_context.h"
31 namespace net_instaweb {
37 class SyncFetcherAdapterCallback;
49 kDontAutoCleanupDriver
102 virtual void HandleDone(
bool success);
113 static void ApplyExperimentOptions(
const GoogleUrl& url,
123 int64 start_time_ms_;
class GoogleUrl
Definition: google_url.h:58
virtual void HandleHeadersComplete()
Protected interface from AsyncFetch.
static void StartWithDriver(const GoogleUrl &url, CleanupMode cleanup_mode, ServerContext *server_context, RewriteDriver *driver, AsyncFetch *async_fetch)
static bool BlockingFetch(const GoogleUrl &url, ServerContext *server_context, RewriteDriver *driver, SyncFetcherAdapterCallback *async_fetch)
Class to help run an asynchronous fetch synchronously with a timeout.
Definition: sync_fetcher_adapter_callback.h:35
static RewriteDriver * GetDriver(const GoogleUrl &url, RewriteOptions *custom_options, ServerContext *server_context, const RequestContextPtr &request_ctx)
Definition: resource_fetch.h:44
CleanupMode
For StartWithDriver().
Definition: resource_fetch.h:47
Definition: async_fetch.h:278
Definition: async_fetch.h:53
Definition: rewrite_driver.h:100
Definition: server_context.h:99
Definition: message_handler.h:39
static void Start(const GoogleUrl &url, RewriteOptions *custom_options, ServerContext *server_context, AsyncFetch *async_fetch)
Definition: rewrite_options.h:84
Timer interface, made virtual so it can be mocked for tests.
Definition: timer.h:27