[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |
| 6 | #define CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 7 | |
| 8 | #include <vector> |
| 9 | |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame] | 10 | #include "base/strings/string16.h" |
| 11 | |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 12 | struct WinsockNamespaceProvider { |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame] | 13 | base::string16 name; |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 14 | int version; |
| 15 | bool active; |
| 16 | int type; |
| 17 | }; |
| 18 | typedef std::vector<WinsockNamespaceProvider> WinsockNamespaceProviderList; |
| 19 | |
| 20 | struct WinsockLayeredServiceProvider { |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame] | 21 | WinsockLayeredServiceProvider(); |
vmpstr | bcdec0d | 2016-04-14 01:24:52 | [diff] [blame] | 22 | WinsockLayeredServiceProvider(const WinsockLayeredServiceProvider& other); |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame] | 23 | ~WinsockLayeredServiceProvider(); |
| 24 | |
| 25 | base::string16 name; |
| 26 | base::string16 path; |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 27 | int version; |
| 28 | int chain_length; |
| 29 | int socket_type; |
| 30 | int socket_protocol; |
| 31 | }; |
| 32 | typedef std::vector<WinsockLayeredServiceProvider> |
| 33 | WinsockLayeredServiceProviderList; |
| 34 | |
| 35 | // Returns all the Winsock namespace providers. |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame] | 36 | void GetWinsockNamespaceProviders(WinsockNamespaceProviderList* namespace_list); |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 37 | |
| 38 | // Returns all the Winsock layered service providers and their paths. |
| 39 | void GetWinsockLayeredServiceProviders( |
| 40 | WinsockLayeredServiceProviderList* service_list); |
| 41 | |
| 42 | #endif // CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |