# vim:set noet:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH		= @DEPTH@
topsrcdir	= @top_srcdir@
srcdir		= @srcdir@
VPATH		= @srcdir@

include $(DEPTH)/config/autoconf.mk

MODULE		= necko
GRE_MODULE	= 1

SDK_XPIDLSRCS   = \
		nsIChannel.idl \
		nsILoadGroup.idl \
		nsIProtocolHandler.idl \
		nsIRequest.idl \
		nsIRequestObserver.idl \
		nsIStreamListener.idl \
		nsIIOService.idl \
		nsIURI.idl \
		nsIURL.idl \
		nsIFileURL.idl \
		nsIUploadChannel.idl \
		nsITraceableChannel.idl \
		$(NULL)

XPIDLSRCS	= \
		nsIApplicationCache.idl \
		nsIApplicationCacheChannel.idl \
		nsIApplicationCacheContainer.idl \
		nsIApplicationCacheService.idl \
		nsIAuthInformation.idl \
		nsIAuthPrompt.idl \
		nsIAuthPrompt2.idl \
		nsIAuthPromptAdapterFactory.idl \
		nsIAuthPromptCallback.idl \
		nsIAsyncStreamCopier.idl \
		nsIAsyncVerifyRedirectCallback.idl \
		nsIBufferedStreams.idl \
		nsICancelable.idl \
		nsIChannelPolicy.idl \
		nsICryptoHash.idl \
		nsICryptoHMAC.idl \
		nsIDownloader.idl \
		nsIEncodedChannel.idl \
		nsIFileStreams.idl \
		nsIIncrementalDownload.idl \
		nsIInputStreamPump.idl \
		nsIInputStreamChannel.idl \
                nsIIOService2.idl \
		nsIMIMEInputStream.idl \
		nsINetAddr.idl \
                nsINetworkLinkService.idl \
		nsIPermission.idl \
		nsIPermissionManager.idl \
		nsIPrivateBrowsingService.idl \
		nsIProgressEventSink.idl \
		nsIPrompt.idl \
		nsIProtocolProxyService.idl \
		nsIProtocolProxyService2.idl \
		nsIProtocolProxyFilter.idl \
		nsIProtocolProxyCallback.idl \
		nsIProxiedProtocolHandler.idl \
		nsIProxyAutoConfig.idl \
		nsIProxyInfo.idl \
		nsITransport.idl \
		nsISocketTransport.idl \
		nsISocketTransportService.idl \
		nsISpeculativeConnect.idl \
		nsIServerSocket.idl \
		nsIResumableChannel.idl \
		nsIRequestObserverProxy.idl \
		nsISecurityInfoProvider.idl \
		nsIStreamListenerTee.idl \
		nsISimpleStreamListener.idl \
		nsIStreamTransportService.idl \
		nsIStreamLoader.idl \
		nsISyncStreamListener.idl \
		nsISystemProxySettings.idl \
		nsITimedChannel.idl \
		nsIUnicharStreamLoader.idl \
		nsIUploadChannel2.idl \
		nsIStandardURL.idl \
		nsINestedURI.idl \
		nsIURLParser.idl \
		nsIURIChecker.idl \
		nsISecurityEventSink.idl \
		nsISecretDecoderRing.idl \
		nsISecureBrowserUI.idl \
		nsICryptoFIPSInfo.idl \
		nsINSSErrorsService.idl \
		nsICacheInfoChannel.idl \
		nsICachingChannel.idl \
		nsIByteRangeRequest.idl \
		nsIMultiPartChannel.idl \
		nsIExternalProtocolHandler.idl \
		nsIAuthModule.idl \
		nsIContentSniffer.idl \
		nsIAuthPromptProvider.idl \
		nsPISocketTransportService.idl \
		nsIChannelEventSink.idl \
		nsINetUtil.idl \
		nsIProxiedChannel.idl \
		nsIRandomGenerator.idl \
		nsIStrictTransportSecurityService.idl \
		nsIURIWithPrincipal.idl \
		nsIURIClassifier.idl \
		nsIRedirectResultListener.idl \
		mozIThirdPartyUtil.idl \
		nsISerializationHelper.idl \
		nsIChildChannel.idl \
		nsIParentChannel.idl \
		nsIParentRedirectingChannel.idl \
		nsIRedirectChannelRegistrar.idl \
		$(NULL)

ifdef MOZ_TOOLKIT_SEARCH
XPIDLSRCS	+= nsIBrowserSearchService.idl
endif

EXPORTS		= \
		netCore.h \
		nsNetUtil.h \
		nsNetStrings.h \
		nsChannelProperties.h \
		nsURIHashKey.h \
		nsReadLine.h \
		nsASocketHandler.h \
		nsAsyncRedirectVerifyHelper.h \
		nsStreamListenerWrapper.h \
		$(NULL)

include $(topsrcdir)/config/rules.mk

DEFINES += -DIMPL_NS_NET
