/src/mozilla-central/netwerk/base/nsNetworkInfoService.h
Line | Count | Source (jump to first uncovered line) |
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 | | { 0x296d0900, 0xf8ef, 0x4df0, \ |
17 | | { 0x9c, 0x35, 0xdb, 0x58, 0x62, 0xab, 0xc5, 0x8d } } |
18 | | |
19 | | namespace mozilla { |
20 | | namespace net { |
21 | | |
22 | | class nsNetworkInfoService final |
23 | | : public nsINetworkInfoService |
24 | | { |
25 | | public: |
26 | | NS_DECL_ISUPPORTS |
27 | | NS_DECL_NSINETWORKINFOSERVICE |
28 | | |
29 | | nsresult Init(); |
30 | | |
31 | | explicit nsNetworkInfoService(); |
32 | | |
33 | | private: |
34 | 0 | virtual ~nsNetworkInfoService() = default; |
35 | | }; |
36 | | |
37 | | } // namespace net |
38 | | } // namespace mozilla |
39 | | |
40 | | #endif // mozilla_dom_nsNetworkInfoService_h |