示例#1
0
// Net module shutdown hook
static void nsNetShutdown()
{
    // Release the url parser that the stdurl is holding.
    nsStandardURL::ShutdownGlobalObjects();

    // Release buffer cache
    NS_IF_RELEASE(nsIOService::gBufferCache);

    // Release global state used by the URL helper module.
    net_ShutdownURLHelper();
#ifdef XP_MACOSX
    net_ShutdownURLHelperOSX();
#endif
    
    // Release necko strings
    delete gNetStrings;
    gNetStrings = nsnull;
    
    // Release DNS service reference.
    nsDNSPrefetch::Shutdown();

#ifdef NECKO_PROTOCOL_websocket
    // Release the Websocket Admission Manager
    mozilla::net::WebSocketChannel::Shutdown();
#endif // NECKO_PROTOCOL_websocket
}
示例#2
0
// Net module shutdown hook
static void nsNetShutdown()
{
    // Release the url parser that the stdurl is holding.
    nsStandardURL::ShutdownGlobalObjects();

    // Release global state used by the URL helper module.
    net_ShutdownURLHelper();
#ifdef XP_MACOSX
    net_ShutdownURLHelperOSX();
#endif
    
    // Release DNS service reference.
    nsDNSPrefetch::Shutdown();

#ifdef NECKO_PROTOCOL_websocket
    // Release the Websocket Admission Manager
    mozilla::net::WebSocketChannel::Shutdown();
#endif // NECKO_PROTOCOL_websocket

#ifdef NECKO_PROTOCOL_http
    mozilla::net::Http2CompressionCleanup();
#endif // NECKO_PROTOCOL_http

    delete gNetSniffers;
    gNetSniffers = nullptr;
    delete gDataSniffers;
    gDataSniffers = nullptr;
}
示例#3
0
// Net module shutdown hook
static void PR_CALLBACK nsNetShutdown(nsIModule *neckoModule)
{
    // Release the url parser that the stdurl is holding.
    nsStandardURL::ShutdownGlobalObjects();

    // Release buffer cache
    NS_IF_RELEASE(nsIOService::gBufferCache);

    // Release global state used by the URL helper module.
    net_ShutdownURLHelper();
#ifdef XP_MACOSX
    net_ShutdownURLHelperOSX();
#endif

    // Release necko strings
    delete gNetStrings;
    gNetStrings = nsnull;
}