28DAVSessionFactory::~DAVSessionFactory()
33 const OUString & inUri,
34 const uno::Sequence< beans::NamedValue >& rFlags,
35 const uno::Reference< uno::XComponentContext > & rxContext )
42 Map::iterator aIt = std::find_if(
m_aMap.begin(),
m_aMap.end(),
43 [&inUri, &rFlags](
const Map::value_type& rEntry) { return rEntry.second->CanUse( inUri, rFlags ); });
50 aIt =
m_aMap.emplace( inUri, xElement.get() ).first;
52 aIt->second->m_aContainerIt = aIt;
55 else if ( osl_atomic_increment( &aIt->second->m_nRefCount ) > 1 )
58 osl_atomic_decrement( &aIt->second->m_nRefCount );
63 osl_atomic_decrement( &aIt->second->m_nRefCount );
64 aIt->second->m_aContainerIt =
m_aMap.end();
67 aIt->second = xNewStorage.get();
68 aIt->second->m_aContainerIt = aIt;
implementation of libcurl HTTP/DAV back-end
rtl::Reference< DAVSession > createDAVSession(const OUString &inUri, const ::com::sun::star::uno::Sequence<::com::sun::star::beans::NamedValue > &rFlags, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
void releaseElement(const DAVSession *pElement)
std::unique_ptr< ucbhelper::InternetProxyDecider > m_xProxyDecider
DAVSessionFactory::Map::iterator m_aContainerIt