nsNetworkInfoService.h 961 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* -*- Mode: C++; tab-width: 8; 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. #ifndef mozilla_net_nsNetworkInfoService_h
  6. #define mozilla_net_nsNetworkInfoService_h
  7. #include "nsISupportsImpl.h"
  8. #include "mozilla/ErrorResult.h"
  9. #include "nsINetworkInfoService.h"
  10. #define NETWORKINFOSERVICE_CID \
  11. { 0x296d0900, 0xf8ef, 0x4df0, \
  12. { 0x9c, 0x35, 0xdb, 0x58, 0x62, 0xab, 0xc5, 0x8d } }
  13. namespace mozilla {
  14. namespace net {
  15. class nsNetworkInfoService final
  16. : public nsINetworkInfoService
  17. {
  18. public:
  19. NS_DECL_ISUPPORTS
  20. NS_DECL_NSINETWORKINFOSERVICE
  21. nsresult Init();
  22. explicit nsNetworkInfoService();
  23. private:
  24. virtual ~nsNetworkInfoService() = default;
  25. };
  26. } // namespace net
  27. } // namespace mozilla
  28. #endif // mozilla_dom_nsNetworkInfoService_h