Page Speed Optimization Libraries
1.13.35.1
|
#include "proxy_interface_test_base.h"
Public Member Functions | |
bool | Decode (const GoogleUrl &gurl, const RewriteOptions *rewrite_options, GoogleString *decoded) const override |
Given the request_url, generate the original url. | |
virtual bool | IsAuthorized (const GoogleUrl &gurl, const RewriteOptions &options) const |
void | set_authorized (bool authorized) |
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 ProxyExtent | 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 Attributes | |
static const char | kProxyHost [] |
Additional Inherited Members | |
Public Types inherited from net_instaweb::UrlNamer | |
enum | EncodeOption { kSharded, kUnsharded } |
enum | ProxyExtent { kNone, ProxyExtent::kInputOnly, ProxyExtent::kFull } |
Creates a proxy URL naming rule that encodes an "owner" domain and an "origin" domain, all inside a fixed proxy-domain.
|
inlinevirtual |
Determines whether the provided request URL is authorized given the RewriteOptions.
The default implementation uses the domain lawyer in the options.
Reimplemented from net_instaweb::UrlNamer.