| 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() {} |
| 18 |
| 19 // Fill in the wifi access point info if device is currently connected to a |
| 20 // wifi access point. Return true if device is connected to a wifi access |
| 21 // point, false otherwise. |
| 22 virtual bool GetInfo(net::WifiAccessPointInfo *info) = 0; |
| 23 |
| 24 private: |
| 25 DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); |
| 26 }; |
| 27 |
| 28 } // namespace net |
| 29 |
| 30 #endif // NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
| OLD | NEW |