Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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 NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| 6 #define NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| 7 | |
| 8 #include "net/base/net_export.h" | |
| 9 #include "net/base/net_util.h" | |
| 10 | |
| 11 namespace net { | |
| 12 | |
| 13 // Interface for accessing connected wireless access point information. | |
| 14 class NET_EXPORT WifiAccessPointInfoProvider { | |
| 15 public: | |
| 16 WifiAccessPointInfoProvider() {} | |
| 17 virtual ~WifiAccessPointInfoProvider() {} | |
|
stevenjb
2014/07/23 20:03:36
nit: WS
zqiu1
2014/07/23 21:48:40
Done.
| |
| 18 // Fill in the wifi access point info if device is currently connected to a | |
| 19 // wifi access point. Return true if device is connected to a wifi access | |
| 20 // point, false otherwise. | |
| 21 virtual bool GetInfo(net::WifiAccessPointInfo *info) = 0; | |
| 22 | |
| 23 static scoped_ptr<WifiAccessPointInfoProvider> Create(); | |
| 24 | |
| 25 private: | |
| 26 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); | |
| 27 }; | |
| 28 | |
| 29 } // namespace net | |
| 30 | |
| 31 #endif // NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ | |
| OLD | NEW |