FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
BrowserStreamPtr FB::BrowserHost::createStream ( const std::string &  url,
const PluginEventSinkPtr &  callback,
bool  cache = true,
bool  seekable = false,
size_t  internalBufferSize = 128 * 1024 
) const

Creates a BrowserStream (deprecated since 1.7.0)

urlURL of the document to request.
callbackPluginEventSink to send status updates to (usually your Plugin class derived from PluginCore)
cachetrue to cache.
seekabletrue if the Stream should be seekable.
internalBufferSizeSize of the internal buffer.
null if it fails, else BrowserStream object
1.7 (use the other createStream)
See Also
virtual BrowserStreamPtr createStream( const BrowserStreamRequest& req ) const

Definition at line 348 of file BrowserHost.cpp.

References FB::BrowserStreamRequest::setBufferSize(), FB::BrowserStreamRequest::setCacheable(), FB::BrowserStreamRequest::setEventSink(), and FB::BrowserStreamRequest::setSeekable().

351 {
352  BrowserStreamRequest req(url, "GET");
353  req.setEventSink(callback);
354  req.setCacheable(cache);
355  req.setSeekable(seekable);
356  req.setBufferSize(internalBufferSize);
357  return createStream(req);
358 }

Here is the call graph for this function: