27 #ifndef PAGESPEED_AUTOMATIC_PROXY_INTERFACE_H_
28 #define PAGESPEED_AUTOMATIC_PROXY_INTERFACE_H_
36 namespace net_instaweb {
41 class ProxyFetchPropertyCallbackCollector;
42 class ProxyFetchFactory;
51 ProxyInterface(StringPiece stats_prefix, StringPiece hostname,
int port,
68 static const char kCacheHtmlRequestCount[];
72 bool is_resource_fetch,
82 friend class ProxyInterfaceTest;
87 void ProxyRequest(
bool is_resource_fetch,
95 void GetRewriteOptionsDone(RequestData* request_data,
102 bool UrlAndPortMatchThisServer(
const GoogleUrl& url);
class GoogleUrl
Definition: google_url.h:58
static void InitStats(StringPiece stats_prefix, Statistics *statistics)
Initializes statistics variables associated with this class.
virtual ProxyFetchPropertyCallbackCollector * InitiatePropertyCacheLookup(bool is_resource_fetch, const GoogleUrl &request_url, RewriteOptions *options, AsyncFetch *async_fetch)
Initiates the PropertyCache look up.
bool IsWellFormedUrl(const GoogleUrl &url)
Is this url_string well-formed enough to proxy through?
Base class for implementations of monitoring statistics.
Definition: statistics.h:342
Definition: scoped_ptr.h:30
virtual void Fetch(const GoogleString &requested_url, MessageHandler *handler, AsyncFetch *async_fetch)
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
Definition: proxy_interface.h:49
Definition: proxy_fetch.h:176
Definition: async_fetch.h:53
Definition: server_context.h:99
Definition: message_handler.h:39
Definition: statistics.h:298
Definition: rewrite_options.h:84
ServerContext * server_context_
Needed by subclasses when overriding InitiatePropertyCacheLookup.
Definition: proxy_interface.h:79
Definition: url_async_fetcher.h:33