michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* vim: set sw=2 ts=8 et tw=80 : */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_net_DNSRequestParent_h michael@0: #define mozilla_net_DNSRequestParent_h michael@0: michael@0: #include "mozilla/net/PDNSRequestParent.h" michael@0: #include "nsIDNSService.h" michael@0: #include "nsIDNSListener.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: class DNSRequestParent michael@0: : public PDNSRequestParent michael@0: , public nsIDNSListener michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDNSLISTENER michael@0: michael@0: DNSRequestParent(); michael@0: virtual ~DNSRequestParent(); michael@0: michael@0: void DoAsyncResolve(const nsACString &hostname, uint32_t flags); michael@0: michael@0: protected: michael@0: virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE; michael@0: private: michael@0: uint32_t mFlags; michael@0: bool mIPCClosed; // true if IPDL channel has been closed (child crash) michael@0: }; michael@0: michael@0: } // namespace net michael@0: } // namespace mozilla michael@0: #endif // mozilla_net_DNSRequestParent_h