[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(); |
| 22 | ~WinsockLayeredServiceProvider(); |
| 23 | |
| 24 | base::string16 name; |
| 25 | base::string16 path; |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 26 | int version; |
| 27 | int chain_length; |
| 28 | int socket_type; |
| 29 | int socket_protocol; |
| 30 | }; |
| 31 | typedef std::vector<WinsockLayeredServiceProvider> |
| 32 | WinsockLayeredServiceProviderList; |
| 33 | |
| 34 | // Returns all the Winsock namespace providers. |
thakis | 43ae9a2 | 2015-05-02 04:58:39 | [diff] [blame^] | 35 | void GetWinsockNamespaceProviders(WinsockNamespaceProviderList* namespace_list); |
[email protected] | 5490bb98 | 2010-09-14 13:40:54 | [diff] [blame] | 36 | |
| 37 | // Returns all the Winsock layered service providers and their paths. |
| 38 | void GetWinsockLayeredServiceProviders( |
| 39 | WinsockLayeredServiceProviderList* service_list); |
| 40 | |
| 41 | #endif // CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |