Page Speed Optimization Libraries  1.11.33.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
net_instaweb::MeasurementProxyUrlNamer Class Reference

#include "measurement_proxy_url_namer.h"

Inheritance diagram for net_instaweb::MeasurementProxyUrlNamer:
net_instaweb::UrlNamer

Public Member Functions

bool Decode (const GoogleUrl &request_url, const RewriteOptions *rewrite_options, GoogleString *decoded) const override
 
bool IsAuthorized (const GoogleUrl &request_url, const RewriteOptions &options) const override
 
- Public Member Functions inherited from net_instaweb::UrlNamer
virtual GoogleString Encode (const RewriteOptions *rewrite_options, const OutputResource &output_resource, EncodeOption encode_option) const
 
virtual void ConfigureCustomOptions (const RequestHeaders &request_headers, RewriteOptions *options) const
 Configure custom options. Note that options may be NULL.
 
virtual bool ProxyMode () const
 
virtual bool IsProxyEncoded (const GoogleUrl &url) const
 
virtual void PrepForCrossDomain (AsyncFetch *) const
 Prepare Fetch for cross-domain request.
 
const GoogleString & proxy_domain () const
 
void set_proxy_domain (const GoogleString &proxy_domain)
 

Static Public Member Functions

static bool DecodePathDetails (const GoogleUrl &request_url, StringPiece *config, StringPiece *config_domain, StringPiece *password, GoogleString *res_url)
 

Additional Inherited Members

- Public Types inherited from net_instaweb::UrlNamer
enum  EncodeOption { kSharded, kUnsharded }
 

Detailed Description

Implements a naming scheme that lets a proxy handle multiple domains. Suitable only for measurements/experiments, not regular use, as normally this would break the entire same origin model. This also assumes that there is something altering every request from the page to use our encoding before fetching via us (as this doesn't implement Encode() itself).

Member Function Documentation

bool net_instaweb::MeasurementProxyUrlNamer::Decode ( const GoogleUrl &  request_url,
const RewriteOptions rewrite_options,
GoogleString *  decoded 
) const
overridevirtual

Note: this doesn't deal with the authenication or verification of origin or password, the MeasurementProxyRewriteOptionsManager is expected to do that.

Reimplemented from net_instaweb::UrlNamer.

bool net_instaweb::MeasurementProxyUrlNamer::IsAuthorized ( const GoogleUrl &  request_url,
const RewriteOptions options 
) const
inlineoverridevirtual

Determines whether the provided request URL is authorized given the RewriteOptions.

The default implementation uses the domain lawyer in the options.

We want to fetch everything.

Reimplemented from net_instaweb::UrlNamer.


The documentation for this class was generated from the following file: