michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef WifiProxyService_h michael@0: #define WifiProxyService_h michael@0: michael@0: #include "nsIWifiService.h" michael@0: #include "nsCOMPtr.h" michael@0: #include "nsThread.h" michael@0: #include "mozilla/dom/WifiOptionsBinding.h" michael@0: #include "nsTArray.h" michael@0: michael@0: namespace mozilla { michael@0: michael@0: class WifiProxyService MOZ_FINAL : public nsIWifiProxyService michael@0: { michael@0: private: michael@0: struct EventThreadListEntry michael@0: { michael@0: nsCOMPtr mThread; michael@0: nsCString mInterface; michael@0: }; michael@0: michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIWIFIPROXYSERVICE michael@0: michael@0: static already_AddRefed michael@0: FactoryCreate(); michael@0: michael@0: void DispatchWifiEvent(const nsAString& aEvent, const nsACString& aInterface); michael@0: void DispatchWifiResult(const mozilla::dom::WifiResultOptions& aOptions, michael@0: const nsACString& aInterface); michael@0: michael@0: private: michael@0: WifiProxyService(); michael@0: ~WifiProxyService(); michael@0: michael@0: nsTArray mEventThreadList; michael@0: nsCOMPtr mControlThread; michael@0: nsCOMPtr mListener; michael@0: }; michael@0: michael@0: } // namespace mozilla michael@0: michael@0: #endif // WifiProxyService_h