1*6777b538SAndroid Build Coastguard Worker // Copyright 2011 The Chromium Authors 2*6777b538SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 3*6777b538SAndroid Build Coastguard Worker // found in the LICENSE file. 4*6777b538SAndroid Build Coastguard Worker 5*6777b538SAndroid Build Coastguard Worker // Winsock initialization must happen before any Winsock calls are made. The 6*6777b538SAndroid Build Coastguard Worker // EnsureWinsockInit method will make sure that WSAStartup has been called. 7*6777b538SAndroid Build Coastguard Worker 8*6777b538SAndroid Build Coastguard Worker #ifndef NET_BASE_WINSOCK_INIT_H_ 9*6777b538SAndroid Build Coastguard Worker #define NET_BASE_WINSOCK_INIT_H_ 10*6777b538SAndroid Build Coastguard Worker 11*6777b538SAndroid Build Coastguard Worker #include "net/base/net_export.h" 12*6777b538SAndroid Build Coastguard Worker 13*6777b538SAndroid Build Coastguard Worker namespace net { 14*6777b538SAndroid Build Coastguard Worker 15*6777b538SAndroid Build Coastguard Worker // Make sure that Winsock is initialized, calling WSAStartup if needed. 16*6777b538SAndroid Build Coastguard Worker NET_EXPORT void EnsureWinsockInit(); 17*6777b538SAndroid Build Coastguard Worker 18*6777b538SAndroid Build Coastguard Worker } // namespace net 19*6777b538SAndroid Build Coastguard Worker 20*6777b538SAndroid Build Coastguard Worker #endif // NET_BASE_WINSOCK_INIT_H_ 21