19 #ifndef NET_INSTAWEB_HTTP_PUBLIC_RATE_CONTROLLING_URL_ASYNC_FETCHER_H_
20 #define NET_INSTAWEB_HTTP_PUBLIC_RATE_CONTROLLING_URL_ASYNC_FETCHER_H_
23 #include "pagespeed/kernel/base/basictypes.h"
24 #include "pagespeed/kernel/base/scoped_ptr.h"
25 #include "pagespeed/kernel/base/string.h"
27 namespace net_instaweb {
44 int max_global_queue_size,
45 int per_host_outgoing_request_threshold,
46 int per_host_queued_request_threshold,
47 ThreadSystem* thread_system,
48 Statistics* statistics);
56 virtual void Fetch(
const GoogleString& url,
57 MessageHandler* message_handler,
64 scoped_ptr<RateController> rate_controller_;
RateControllingUrlAsyncFetcher(UrlAsyncFetcher *fetcher, int max_global_queue_size, int per_host_outgoing_request_threshold, int per_host_queued_request_threshold, ThreadSystem *thread_system, Statistics *statistics)
virtual bool SupportsHttps() const
Definition: rate_controlling_url_async_fetcher.h:52
Definition: async_fetch.h:53
Definition: rate_controlling_url_async_fetcher.h:38
virtual bool SupportsHttps() const
Definition: url_async_fetcher.h:57
virtual void Fetch(const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch)
Definition: url_async_fetcher.h:33