Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: net/base/net_util_win.h

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | net/base/net_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_BASE_NET_UTIL_WIN_H_ 5 #ifndef NET_BASE_NET_UTIL_WIN_H_
6 #define NET_BASE_NET_UTIL_WIN_H_ 6 #define NET_BASE_NET_UTIL_WIN_H_
7 7
8 // This file is only used to expose some of the internals 8 // This file is only used to expose some of the internals
9 // of net_util_win.cc to tests. 9 // of net_util_win.cc to tests.
10 10
11 #include <iphlpapi.h>
11 #include <wlanapi.h> 12 #include <wlanapi.h>
12 13
13 #include "base/win/scoped_handle.h" 14 #include "base/win/scoped_handle.h"
14 #include "net/base/net_export.h" 15 #include "net/base/net_export.h"
16 #include "net/base/net_util.h"
15 17
16 namespace net { 18 namespace net {
17 namespace internal { 19 namespace internal {
18 20
19 struct NET_EXPORT WlanApi { 21 struct NET_EXPORT WlanApi {
20 typedef DWORD (WINAPI *WlanOpenHandleFunc)( 22 typedef DWORD (WINAPI *WlanOpenHandleFunc)(
21 DWORD, VOID*, DWORD*, HANDLE*); 23 DWORD, VOID*, DWORD*, HANDLE*);
22 typedef DWORD (WINAPI *WlanEnumInterfacesFunc)( 24 typedef DWORD (WINAPI *WlanEnumInterfacesFunc)(
23 HANDLE, VOID*, WLAN_INTERFACE_INFO_LIST**); 25 HANDLE, VOID*, WLAN_INTERFACE_INFO_LIST**);
24 typedef DWORD (WINAPI *WlanQueryInterfaceFunc)( 26 typedef DWORD (WINAPI *WlanQueryInterfaceFunc)(
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 typedef base::win::GenericScopedHandle< 73 typedef base::win::GenericScopedHandle<
72 WlanApiHandleTraits, 74 WlanApiHandleTraits,
73 base::win::DummyVerifierTraits> WlanHandle; 75 base::win::DummyVerifierTraits> WlanHandle;
74 76
75 struct WlanApiDeleter { 77 struct WlanApiDeleter {
76 inline void operator()(void* ptr) const { 78 inline void operator()(void* ptr) const {
77 WlanApi::GetInstance().free_memory_func(ptr); 79 WlanApi::GetInstance().free_memory_func(ptr);
78 } 80 }
79 }; 81 };
80 82
83 NET_EXPORT bool GetNetworkListImpl(
84 NetworkInterfaceList* networks,
85 int policy,
86 bool is_xp,
87 const IP_ADAPTER_ADDRESSES* ip_adapter_addresses);
88
81 } // namespace internal 89 } // namespace internal
82 90
83 } // namespace net 91 } // namespace net
84 92
85 #endif // NET_BASE_NET_UTIL_WIN_H_ 93 #endif // NET_BASE_NET_UTIL_WIN_H_
OLDNEW
« no previous file with comments | « net/base/net_util_unittest.cc ('k') | net/base/net_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698