Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
#ifndef mozilla_net_nsNetworkInfoService_h
8
#define mozilla_net_nsNetworkInfoService_h
9
10
#include "nsISupportsImpl.h"
11
#include "mozilla/ErrorResult.h"
12
13
#include "nsINetworkInfoService.h"
14
15
#define NETWORKINFOSERVICE_CID \
16
{ \
17
0x296d0900, 0xf8ef, 0x4df0, { \
18
0x9c, 0x35, 0xdb, 0x58, 0x62, 0xab, 0xc5, 0x8d \
19
} \
20
}
21
22
namespace mozilla {
23
namespace net {
24
25
class nsNetworkInfoService final : public nsINetworkInfoService {
26
public:
27
NS_DECL_ISUPPORTS
28
NS_DECL_NSINETWORKINFOSERVICE
29
30
nsresult Init();
31
32
explicit nsNetworkInfoService();
33
34
private:
35
virtual ~nsNetworkInfoService() = default;
36
};
37
38
} // namespace net
39
} // namespace mozilla
40
41
#endif // mozilla_dom_nsNetworkInfoService_h