mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Added an Event Queue argument to the NewConnection(...) call. This fixed up the build bustage...
This commit is contained in:
parent
cf24c3e0e3
commit
f74ebbc7c8
@ -22,12 +22,15 @@
|
|||||||
#include "nsUrl.h"
|
#include "nsUrl.h"
|
||||||
#include "nscore.h"
|
#include "nscore.h"
|
||||||
#include "nsString2.h"
|
#include "nsString2.h"
|
||||||
|
#include "nsXPComCIID.h"
|
||||||
#include "nsIServiceManager.h"
|
#include "nsIServiceManager.h"
|
||||||
|
#include "nsIEventQueueService.h"
|
||||||
#include "nsIFileTransportService.h"
|
#include "nsIFileTransportService.h"
|
||||||
#include "nsConnectionGroup.h"
|
#include "nsConnectionGroup.h"
|
||||||
#include <ctype.h> // for isalpha
|
#include <ctype.h> // for isalpha
|
||||||
|
|
||||||
static NS_DEFINE_CID(kFileTransportService, NS_FILETRANSPORTSERVICE_CID);
|
static NS_DEFINE_CID(kFileTransportService, NS_FILETRANSPORTSERVICE_CID);
|
||||||
|
static NS_DEFINE_CID(kEventQueueService, NS_EVENTQUEUESERVICE_CID);
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -182,8 +185,15 @@ nsNetService::NewConnection(nsIUrl* url,
|
|||||||
rv = GetProtocolHandler(scheme, &handler);
|
rv = GetProtocolHandler(scheme, &handler);
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
|
PLEventQueue* eventQ;
|
||||||
|
NS_WITH_SERVICE(nsIEventQueueService, eventQService, kEventQueueService, &rv);
|
||||||
|
if (NS_SUCCEEDED(rv)) {
|
||||||
|
rv = eventQService->GetThreadEventQueue(PR_CurrentThread(), &eventQ);
|
||||||
|
}
|
||||||
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
nsIProtocolConnection* connection;
|
nsIProtocolConnection* connection;
|
||||||
rv = handler->NewConnection(url, eventSink, &connection);
|
rv = handler->NewConnection(url, eventSink, eventQ, &connection);
|
||||||
NS_RELEASE(handler);
|
NS_RELEASE(handler);
|
||||||
if (NS_FAILED(rv)) return rv;
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user