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

#include "csp.h"

Public Member Functions

const CspSourceListSourceListFor (CspDirective directive) const
 May return null.
 
bool PermitsEval () const
 
bool PermitsInlineScript () const
 
bool PermitsInlineScriptAttribute () const
 
bool PermitsInlineStyle () const
 
bool PermitsInlineStyleAttribute () const
 
bool CanLoadUrl (CspDirective role, const GoogleUrl &origin_url, const GoogleUrl &url) const
 
bool IsBasePermitted (const GoogleUrl &previous_origin, const GoogleUrl &base_candidate) const
 

Static Public Member Functions

static std::unique_ptr< CspPolicyParse (StringPiece input)
 May return null.
 

Detailed Description

An individual policy. Note that a page is constrained by an intersection of some number of these.

Member Function Documentation

bool net_instaweb::CspPolicy::CanLoadUrl ( CspDirective  role,
const GoogleUrl origin_url,
const GoogleUrl url 
) const

Tests whether 'url' can be loaded within 'origin_url' as 'role', where 'role' should be kStyleSrc, kScriptSrc or kImgSrc.


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