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

#include "csp.h"

Public Member Functions

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)
 
bool IsBasePermitted (const GoogleUrl &previous_origin, const GoogleUrl &base_candidate) const
 
bool HasDirective (CspDirective directive) const
 
bool HasDirectiveOrDefaultSrc (CspDirective directive) const
 
void AddPolicy (std::unique_ptr< CspPolicy > policy)
 
void Clear ()
 
size_t policies_size () const
 
bool empty () const
 

Detailed Description

A set of all policies (maybe none!) on the page. Note that we do not track those with report disposition, only those that actually enforce — reporting seems like it would keep the page author informed about our effects as it is.

Member Function Documentation

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

All policies must OK, with base case being 'true'.


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