Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/netwerk/dns/mdns/libmdns/nsDNSServiceInfo.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
 * License, v. 2.0. If a copy of the MPL was not distributed with this
4
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#ifndef mozilla_netwerk_dns_mdns_libmdns_nsDNSServiceInfo_h
7
#define mozilla_netwerk_dns_mdns_libmdns_nsDNSServiceInfo_h
8
9
#include "nsCOMPtr.h"
10
#include "nsIDNSServiceDiscovery.h"
11
#include "nsIPropertyBag2.h"
12
#include "nsString.h"
13
14
namespace mozilla {
15
namespace net {
16
17
class nsDNSServiceInfo final : public nsIDNSServiceInfo
18
{
19
public:
20
  NS_DECL_ISUPPORTS
21
  NS_DECL_NSIDNSSERVICEINFO
22
23
0
  explicit nsDNSServiceInfo() = default;
24
  explicit nsDNSServiceInfo(nsIDNSServiceInfo* aServiceInfo);
25
26
private:
27
0
  virtual ~nsDNSServiceInfo() = default;
28
29
private:
30
  nsCString mHost;
31
  nsCString mAddress;
32
  uint16_t mPort = 0;
33
  nsCString mServiceName;
34
  nsCString mServiceType;
35
  nsCString mDomainName;
36
  nsCOMPtr<nsIPropertyBag2> mAttributes;
37
38
  bool mIsHostSet = false;
39
  bool mIsAddressSet = false;
40
  bool mIsPortSet = false;
41
  bool mIsServiceNameSet = false;
42
  bool mIsServiceTypeSet = false;
43
  bool mIsDomainNameSet = false;
44
  bool mIsAttributesSet = false;
45
};
46
47
} // namespace net
48
} // namespace mozilla
49
50
#endif // mozilla_netwerk_dns_mdns_libmdns_nsDNSServiceInfo_h