19 #ifndef GNASH_STREAMPROVIDER_H
20 #define GNASH_STREAMPROVIDER_H
60 std::auto_ptr<NamingPolicy> np =
69 virtual std::auto_ptr<IOChannel> getStream(
const URL&
url,
70 bool namedCacheFile =
false)
const;
81 virtual std::auto_ptr<IOChannel> getStream(
const URL&
url,
82 const std::string& postdata,
bool namedCacheFile =
false)
const;
84 virtual std::auto_ptr<IOChannel> getStream(
const URL&
url,
85 const std::string& postdata,
87 bool namedCacheFile =
false)
const;
99 assert(_namingPolicy.get());
100 return *_namingPolicy;
124 std::auto_ptr<NamingPolicy> _namingPolicy;
const NamingPolicy & namingPolicy() const
Return the currently selected policy for converting URL to filename.
Definition: StreamProvider.h:98
virtual ~StreamProvider()
Definition: StreamProvider.h:63
void setNamingPolicy(std::auto_ptr< NamingPolicy > np)
Set the NamingPolicy for cache files.
Definition: StreamProvider.h:93
bool allow(const URL &url, const URL &baseurl)
Return true if access to given url is allowed, false otherwise.
Definition: URLAccessManager.cpp:275
#define DSOEXPORT
Definition: dsodefs.h:55
std::map< std::string, std::string, StringNoCaseLessThan > RequestHeaders
Definition: NetworkAdapter.h:43
std::string url
Definition: gnash.cpp:58
const URL & baseURL() const
The base URL that should be used to resolve all relative URLs.
Definition: StreamProvider.h:117
A StreamProvider makes IOChannels available to the core on request.
Definition: StreamProvider.h:49
Definition: NamingPolicy.h:31
Uniform Resource Locator.
Definition: URL.h:34