Wed, 31 Dec 2014 06:55:46 +0100
Added tag TORBROWSER_REPLICA for changeset 6474c204b198
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
michael@0 | 2 | /* vim: set sw=2 ts=8 et tw=80 : */ |
michael@0 | 3 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef mozilla_net_DNSRequestParent_h |
michael@0 | 8 | #define mozilla_net_DNSRequestParent_h |
michael@0 | 9 | |
michael@0 | 10 | #include "mozilla/net/PDNSRequestParent.h" |
michael@0 | 11 | #include "nsIDNSService.h" |
michael@0 | 12 | #include "nsIDNSListener.h" |
michael@0 | 13 | |
michael@0 | 14 | namespace mozilla { |
michael@0 | 15 | namespace net { |
michael@0 | 16 | |
michael@0 | 17 | class DNSRequestParent |
michael@0 | 18 | : public PDNSRequestParent |
michael@0 | 19 | , public nsIDNSListener |
michael@0 | 20 | { |
michael@0 | 21 | public: |
michael@0 | 22 | NS_DECL_ISUPPORTS |
michael@0 | 23 | NS_DECL_NSIDNSLISTENER |
michael@0 | 24 | |
michael@0 | 25 | DNSRequestParent(); |
michael@0 | 26 | virtual ~DNSRequestParent(); |
michael@0 | 27 | |
michael@0 | 28 | void DoAsyncResolve(const nsACString &hostname, uint32_t flags); |
michael@0 | 29 | |
michael@0 | 30 | protected: |
michael@0 | 31 | virtual void ActorDestroy(ActorDestroyReason why) MOZ_OVERRIDE; |
michael@0 | 32 | private: |
michael@0 | 33 | uint32_t mFlags; |
michael@0 | 34 | bool mIPCClosed; // true if IPDL channel has been closed (child crash) |
michael@0 | 35 | }; |
michael@0 | 36 | |
michael@0 | 37 | } // namespace net |
michael@0 | 38 | } // namespace mozilla |
michael@0 | 39 | #endif // mozilla_net_DNSRequestParent_h |