2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +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/. */
|
1999-08-22 18:40:41 +04:00
|
|
|
|
2003-09-12 00:32:33 +04:00
|
|
|
#ifndef nsSocketProviderService_h__
|
|
|
|
#define nsSocketProviderService_h__
|
1999-08-22 18:40:41 +04:00
|
|
|
|
|
|
|
#include "nsISocketProviderService.h"
|
2018-10-23 23:07:25 +03:00
|
|
|
#include "mozilla/StaticPtr.h"
|
1999-08-22 18:40:41 +04:00
|
|
|
|
|
|
|
class nsSocketProviderService : public nsISocketProviderService {
|
2018-10-23 23:07:25 +03:00
|
|
|
nsSocketProviderService() = default;
|
2018-04-30 19:46:04 +03:00
|
|
|
virtual ~nsSocketProviderService() = default;
|
2014-06-24 20:36:44 +04:00
|
|
|
|
1999-08-22 18:40:41 +04:00
|
|
|
public:
|
2013-07-19 06:24:13 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
1999-08-24 10:50:41 +04:00
|
|
|
NS_DECL_NSISOCKETPROVIDERSERVICE
|
1999-08-22 18:40:41 +04:00
|
|
|
|
2018-10-23 23:07:25 +03:00
|
|
|
static already_AddRefed<nsISocketProviderService> GetOrCreate();
|
1999-08-22 18:40:41 +04:00
|
|
|
|
2018-10-23 23:07:25 +03:00
|
|
|
private:
|
|
|
|
static mozilla::StaticRefPtr<nsSocketProviderService> gSingleton;
|
1999-08-22 18:40:41 +04:00
|
|
|
};
|
|
|
|
|
2003-09-12 00:32:33 +04:00
|
|
|
#endif /* nsSocketProviderService_h__ */
|