Gnash  0.8.10
Namespaces | Defines | Typedefs | Enumerations | Functions
URLAccessManager.cpp File Reference
#include "URLAccessManager.h"
#include "URL.h"
#include "log.h"
#include "StringPredicates.h"
#include "rc.h"
#include "GnashSystemNetHeaders.h"
#include <cerrno>
#include <algorithm>
#include <cstring>
#include <cstdio>
#include <map>
#include <string>
#include <vector>
#include <cassert>

Namespaces

namespace  gnash
 

Anonymous namespace for callbacks, local functions, event handlers etc.


namespace  gnash::URLAccessManager
 

Manage a list of URL access configuration.


Defines

#define MAXHOSTNAMELEN   200

Typedefs

typedef std::map< std::string,
AccessPolicy > 
gnash::URLAccessManager::AccessPolicyCache
 A cache of AccessPolicy defined for URLs.

Enumerations

enum  gnash::URLAccessManager::AccessPolicy { gnash::URLAccessManager::BLOCK, gnash::URLAccessManager::GRANT }
 Possible access policies for URLs. More...

Functions

const char * gnash::URLAccessManager::accessPolicyString (AccessPolicy policy)
bool gnash::URLAccessManager::allowHost (const std::string &host)
bool gnash::URLAccessManager::allowXMLSocket (const std::string &host, short port)
bool gnash::URLAccessManager::allow (const URL &url, const URL &baseurl)
 Return true if access to given url is allowed, false otherwise.

Define Documentation

#define MAXHOSTNAMELEN   200