| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 NET_SOCKET_SOCKET_DESCRIPTOR_H_ | 5 #ifndef NET_SOCKET_SOCKET_DESCRIPTOR_H_ |
| 6 #define NET_SOCKET_SOCKET_DESCRIPTOR_H_ | 6 #define NET_SOCKET_SOCKET_DESCRIPTOR_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "net/base/net_export.h" | 9 #include "net/base/net_export.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // Replace WSASocket/socket with given factory. The factory will be used by | 34 // Replace WSASocket/socket with given factory. The factory will be used by |
| 35 // CreatePlatformSocket. | 35 // CreatePlatformSocket. |
| 36 static void SetInstance(PlatformSocketFactory* factory); | 36 static void SetInstance(PlatformSocketFactory* factory); |
| 37 | 37 |
| 38 // Creates socket. See WSASocket/socket documentation of parameters. | 38 // Creates socket. See WSASocket/socket documentation of parameters. |
| 39 virtual SocketDescriptor CreateSocket(int family, int type, int protocol) = 0; | 39 virtual SocketDescriptor CreateSocket(int family, int type, int protocol) = 0; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Creates socket. See WSASocket/socket documentation of parameters. | 42 // Creates socket. See WSASocket/socket documentation of parameters. |
| 43 SocketDescriptor NET_EXPORT CreatePlatformSocket(int family, | 43 SocketDescriptor NET_EXPORT |
| 44 int type, | 44 CreatePlatformSocket(int family, int type, int protocol); |
| 45 int protocol); | |
| 46 | 45 |
| 47 } // namespace net | 46 } // namespace net |
| 48 | 47 |
| 49 #endif // NET_SOCKET_SOCKET_DESCRIPTOR_H_ | 48 #endif // NET_SOCKET_SOCKET_DESCRIPTOR_H_ |
| OLD | NEW |