Manage a list of URL access configuration. More...
Typedefs | |
| typedef std::map< std::string, AccessPolicy > | AccessPolicyCache |
| A cache of AccessPolicy defined for URLs. | |
Enumerations | |
| enum | AccessPolicy { BLOCK, GRANT } |
Possible access policies for URLs. More... | |
Functions | |
| const char * | accessPolicyString (AccessPolicy policy) |
| bool | allowHost (const std::string &host) |
| bool | allowXMLSocket (const std::string &host, short port) |
| bool | allow (const URL &url, const URL &baseurl) |
| Return true if access to given url is allowed, false otherwise. | |
Manage a list of URL access configuration.
| typedef std::map<std::string, AccessPolicy> gnash::URLAccessManager::AccessPolicyCache |
A cache of AccessPolicy defined for URLs.
| const char* gnash::URLAccessManager::accessPolicyString | ( | AccessPolicy | policy | ) |
| bool gnash::URLAccessManager::allow | ( | const URL & | url, | |
| const URL & | baseurl | |||
| ) |
Return true if access to given url is allowed, false otherwise.
Will use rc file for whitelist/blacklist and localSandbox.
| url | The url to check | |
| baseurl | The originating url, only used for local urls and only for protocol checking (ie: a non-local originating url will not be allowed to load a local url) |
| bool gnash::URLAccessManager::allowHost | ( | const std::string & | host | ) |
| DSOEXPORT bool gnash::URLAccessManager::allowXMLSocket | ( | const std::string & | host, | |
| short | port | |||
| ) |
1.7.1