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