|
Page Speed Optimization Libraries
1.13.35.1
|
#include "csp.h"
Public Member Functions | |
| const CspSourceList * | SourceListFor (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< CspPolicy > | Parse (StringPiece input) |
| May return null. | |
An individual policy. Note that a page is constrained by an intersection of some number of these.
| 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.
1.8.6