20 #ifndef NET_INSTAWEB_HTTP_PUBLIC_URL_ASYNC_FETCHER_STATS_H_
21 #define NET_INSTAWEB_HTTP_PUBLIC_URL_ASYNC_FETCHER_STATS_H_
24 #include "pagespeed/kernel/base/basictypes.h"
25 #include "pagespeed/kernel/base/string.h"
26 #include "pagespeed/kernel/base/string_util.h"
28 namespace net_instaweb {
52 Statistics* statistics);
57 static void InitStats(StringPiece prefix, Statistics* statistics);
62 virtual void Fetch(
const GoogleString& url,
63 MessageHandler* message_handler,
69 class StatsAsyncFetch;
74 Histogram* fetch_latency_us_histogram_;
76 Variable* bytes_fetched_;
77 Variable* approx_header_bytes_fetched_;
Definition: url_async_fetcher_stats.h:37
virtual void Fetch(const GoogleString &url, MessageHandler *message_handler, AsyncFetch *fetch)
virtual bool SupportsHttps() const
Definition: async_fetch.h:53
UrlAsyncFetcherStats(StringPiece prefix, UrlAsyncFetcher *base_fetcher, Timer *timer, Statistics *statistics)
static void InitStats(StringPiece prefix, Statistics *statistics)
virtual int64 timeout_ms()
Definition: url_async_fetcher.h:33