Bumping manifests a=b2g-bump
[gecko.git] / dom / requestsync / RequestSyncWifiService.h
blob902104b0da368279580a7627a671e367b1693468
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=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 file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_RequestSyncWifiService_h
8 #define mozilla_dom_RequestSyncWifiService_h
10 #include "mozilla/dom/network/Types.h"
11 #include "mozilla/Hal.h"
12 #include "nsIObserver.h"
14 namespace mozilla {
15 namespace dom {
17 class RequestSyncWifiService MOZ_FINAL : public nsISupports
18 , public NetworkObserver
20 public:
21 NS_DECL_ISUPPORTS
23 static void Init();
25 static already_AddRefed<RequestSyncWifiService> GetInstance();
27 void Notify(const hal::NetworkInformation& aNetworkInfo);
29 private:
30 RequestSyncWifiService()
31 : mIsWifi(false)
34 ~RequestSyncWifiService()
37 bool mIsWifi;
40 } // dom namespace
41 } // mozilla namespace
43 #endif // mozilla_dom_RequestSyncWifiService_h