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

#include "proxy_interface_test_base.h"

Inheritance diagram for net_instaweb::ProxyUrlNamer:
net_instaweb::UrlNamer

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 GoogleStringproxy_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 }
 

Detailed Description

Creates a proxy URL naming rule that encodes an "owner" domain and an "origin" domain, all inside a fixed proxy-domain.

Member Function Documentation

virtual bool net_instaweb::ProxyUrlNamer::IsAuthorized ( const GoogleUrl request_url,
const RewriteOptions options 
) const
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.


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