author Dorel Luca <>
Thu, 14 Jun 2018 22:07:18 +0300
changeset 422589 24bfb36d26e86f8c8a2b8e03a82081f4041c57f2
parent 419139 610da3d903bec2983d0e56d051d7d915a6bb86bb
child 436992 7aa742bff8fbae4338e258a4477d5397d0d6f7ad
permissions -rw-r--r--
Backed out 2 changesets (bug 1417827) for windows build bustage. CLOSED TREE Backed out changeset 35655153f9c9 (bug 1417827) Backed out changeset 9606d0d95b53 (bug 1417827)

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et tw=80 : */
/* 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 */

#ifndef mozilla_net_DNSRequestParent_h
#define mozilla_net_DNSRequestParent_h

#include "mozilla/net/PDNSRequestParent.h"
#include "nsIDNSService.h"
#include "nsIDNSListener.h"

namespace mozilla {
namespace net {

class DNSRequestParent
  : public PDNSRequestParent
  , public nsIDNSListener


  void DoAsyncResolve(const nsACString  &hostname,
                      const OriginAttributes &originAttributes,
                      uint32_t flags);

  // Pass args here rather than storing them in the parent; they are only
  // needed if the request is to be canceled.
  mozilla::ipc::IPCResult RecvCancelDNSRequest(const nsCString& hostName,
                                               const OriginAttributes& originAttributes,
                                               const uint32_t& flags,
                                               const nsresult& reason) override;
  mozilla::ipc::IPCResult Recv__delete__() override;

  virtual void ActorDestroy(ActorDestroyReason why) override;
  virtual ~DNSRequestParent() = default;

  uint32_t mFlags;
  bool mIPCClosed;  // true if IPDL channel has been closed (child crash)

} // namespace net
} // namespace mozilla

#endif // mozilla_net_DNSRequestParent_h