Typedefs | Enumerations | Functions

gnash::URLAccessManager Namespace Reference

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)
 Return true if access to given url is allowed, false otherwise.

Detailed Description

Manage a list of URL access configuration.


Typedef Documentation

typedef std::map< std::string, AccessPolicy > gnash::URLAccessManager::AccessPolicyCache

A cache of AccessPolicy defined for URLs.


Enumeration Type Documentation

Possible access policies for URLs.

Enumerator:
BLOCK 

Forbid access.

GRANT 

Allow access.


Function Documentation

const char* gnash::URLAccessManager::accessPolicyString ( AccessPolicy  policy  ) 

References BLOCK, and GRANT.

bool gnash::URLAccessManager::allow ( const URL &  url  ) 

Return true if access to given url is allowed, false otherwise.

Will use rc file for whitelist/blacklist and localSendbox.

Referenced by gnash::NetConnection_as::connect(), gnash::StreamProvider::getStream(), and gnash::NetConnection_as::validateURL().

bool gnash::URLAccessManager::allowHost ( const std::string &  host  ) 
bool gnash::URLAccessManager::allowXMLSocket ( const std::string &  host,
short  port 
)