2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-04-28 11:49:57 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef WifiCertService_h
|
|
|
|
#define WifiCertService_h
|
|
|
|
|
|
|
|
#include "nsIWifiCertService.h"
|
|
|
|
#include "nsCOMPtr.h"
|
2015-02-28 16:54:28 +03:00
|
|
|
#include "nsNSSShutDown.h"
|
2014-04-28 11:49:57 +04:00
|
|
|
#include "nsThread.h"
|
|
|
|
#include "mozilla/dom/WifiOptionsBinding.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
class WifiCertService final : public nsIWifiCertService,
|
2015-03-27 21:52:19 +03:00
|
|
|
public nsNSSShutDownObject
|
2014-04-28 11:49:57 +04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIWIFICERTSERVICE
|
|
|
|
|
|
|
|
static already_AddRefed<WifiCertService>
|
|
|
|
FactoryCreate();
|
|
|
|
void DispatchResult(const mozilla::dom::WifiCertServiceResultOptions& aOptions);
|
|
|
|
|
|
|
|
private:
|
|
|
|
WifiCertService();
|
|
|
|
~WifiCertService();
|
2015-02-28 16:54:28 +03:00
|
|
|
virtual void virtualDestroyNSSReference() {};
|
2014-04-28 11:49:57 +04:00
|
|
|
nsCOMPtr<nsIWifiEventListener> mListener;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespce dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // WifiCertService_h
|