Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends
net_instaweb::ProxyInterface Class Reference

#include "proxy_interface.h"

Inheritance diagram for net_instaweb::ProxyInterface:
net_instaweb::UrlAsyncFetcher

List of all members.

Public Member Functions

 ProxyInterface (const StringPiece &hostname, int port, ServerContext *manager, Statistics *stats)
virtual void Fetch (const GoogleString &requested_url, MessageHandler *handler, AsyncFetch *async_fetch)
void ProxyRequestCallback (bool is_resource_fetch, GoogleUrl *request_url, AsyncFetch *async_fetch, RewriteOptions *domain_options, RewriteOptions *query_options, MessageHandler *handler)
bool IsWellFormedUrl (const GoogleUrl &url)
 Is this url_string well-formed enough to proxy through?
virtual
ProxyFetchPropertyCallbackCollector
InitiatePropertyCacheLookup (bool is_resource_fetch, const GoogleUrl &request_url, RewriteOptions *options, AsyncFetch *async_fetch)
 Initiates the PropertyCache look up.

Static Public Member Functions

static void InitStats (Statistics *statistics)
 Initializes statistics variables associated with this class.

Static Public Attributes

static const char kBlinkRequestCount []
static const char kBlinkCriticalLineRequestCount []

Friends

class ProxyInterfaceTest

Detailed Description

Todo:
TODO(sligocki): Rename as per style-guide.

Member Function Documentation

virtual void net_instaweb::ProxyInterface::Fetch ( const GoogleString requested_url,
MessageHandler handler,
AsyncFetch async_fetch 
) [virtual]

All requests use this interface. We decide internally whether the request is a pagespeed resource, HTML page to be rewritten or another resource to be proxied directly.

Implements net_instaweb::UrlAsyncFetcher.

void net_instaweb::ProxyInterface::ProxyRequestCallback ( bool  is_resource_fetch,
GoogleUrl request_url,
AsyncFetch async_fetch,
RewriteOptions domain_options,
RewriteOptions query_options,
MessageHandler handler 
)

Callback function passed to UrlNamer to finish handling requests once we have rewrite_options for requests that are being proxied.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines