| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ | 5 #ifndef CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |
| 6 #define CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ | 6 #define CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 class Value; | |
| 12 | |
| 13 struct WinsockNamespaceProvider { | 11 struct WinsockNamespaceProvider { |
| 14 std::wstring name; | 12 std::wstring name; |
| 15 int version; | 13 int version; |
| 16 bool active; | 14 bool active; |
| 17 int type; | 15 int type; |
| 18 }; | 16 }; |
| 19 typedef std::vector<WinsockNamespaceProvider> WinsockNamespaceProviderList; | 17 typedef std::vector<WinsockNamespaceProvider> WinsockNamespaceProviderList; |
| 20 | 18 |
| 21 struct WinsockLayeredServiceProvider { | 19 struct WinsockLayeredServiceProvider { |
| 22 std::wstring name; | 20 std::wstring name; |
| 23 std::wstring path; | 21 std::wstring path; |
| 24 int version; | 22 int version; |
| 25 int chain_length; | 23 int chain_length; |
| 26 int socket_type; | 24 int socket_type; |
| 27 int socket_protocol; | 25 int socket_protocol; |
| 28 }; | 26 }; |
| 29 typedef std::vector<WinsockLayeredServiceProvider> | 27 typedef std::vector<WinsockLayeredServiceProvider> |
| 30 WinsockLayeredServiceProviderList; | 28 WinsockLayeredServiceProviderList; |
| 31 | 29 |
| 32 // Returns all the Winsock namespace providers. | 30 // Returns all the Winsock namespace providers. |
| 33 void GetWinsockNamespaceProviders( | 31 void GetWinsockNamespaceProviders( |
| 34 WinsockNamespaceProviderList* namespace_list); | 32 WinsockNamespaceProviderList* namespace_list); |
| 35 | 33 |
| 36 // Returns all the Winsock layered service providers and their paths. | 34 // Returns all the Winsock layered service providers and their paths. |
| 37 void GetWinsockLayeredServiceProviders( | 35 void GetWinsockLayeredServiceProviders( |
| 38 WinsockLayeredServiceProviderList* service_list); | 36 WinsockLayeredServiceProviderList* service_list); |
| 39 | 37 |
| 40 #endif // CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ | 38 #endif // CHROME_BROWSER_NET_SERVICE_PROVIDERS_WIN_H_ |
| 41 | |
| OLD | NEW |