Page Speed Optimization Libraries
1.11.33.2
|
#include "measurement_proxy_url_namer.h"
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 |
![]() | |
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 | |
![]() | |
enum | EncodeOption { kSharded, kUnsharded } |
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).
|
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.
|
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.