Backed out changeset 68ed52f7e45d (bug 1899241) for causing sccache misses (bug 19048...
[gecko.git] / netwerk / socket / nsSOCKSSocketProvider.h
blob27338567338c2cf0e5fb5c1156baf3e69d6caab5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsSOCKSSocketProvider_h__
8 #define nsSOCKSSocketProvider_h__
10 #include "nsISocketProvider.h"
12 // values for ctor's |version| argument
13 enum { NS_SOCKS_VERSION_4 = 4, NS_SOCKS_VERSION_5 = 5 };
15 class nsSOCKSSocketProvider : public nsISocketProvider {
16 public:
17 NS_DECL_THREADSAFE_ISUPPORTS
18 NS_DECL_NSISOCKETPROVIDER
20 explicit nsSOCKSSocketProvider(uint32_t version) : mVersion(version) {}
22 private:
23 virtual ~nsSOCKSSocketProvider() = default;
25 uint32_t mVersion; // NS_SOCKS_VERSION_4 or 5
28 #endif /* nsSOCKSSocketProvider_h__ */