Chromium Code Reviews| Index: net/base/wifi_access_point_info_provider.h |
| diff --git a/net/base/wifi_access_point_info_provider.h b/net/base/wifi_access_point_info_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..dd382c4ce2c107dad6a746d84943c81484abfe7e |
| --- /dev/null |
| +++ b/net/base/wifi_access_point_info_provider.h |
| @@ -0,0 +1,31 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
| +#define NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |
| + |
| +#include "net/base/net_export.h" |
| +#include "net/base/net_util.h" |
| + |
| +namespace net { |
| + |
| +// Interface for accessing connected wireless access point information. |
| +class NET_EXPORT WifiAccessPointInfoProvider { |
| + public: |
| + WifiAccessPointInfoProvider() {} |
| + virtual ~WifiAccessPointInfoProvider() {} |
|
stevenjb
2014/07/23 20:03:36
nit: WS
zqiu1
2014/07/23 21:48:40
Done.
|
| + // Fill in the wifi access point info if device is currently connected to a |
| + // wifi access point. Return true if device is connected to a wifi access |
| + // point, false otherwise. |
| + virtual bool GetInfo(net::WifiAccessPointInfo *info) = 0; |
| + |
| + static scoped_ptr<WifiAccessPointInfoProvider> Create(); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(WifiAccessPointInfoProvider); |
| +}; |
| + |
| +} // namespace net |
| + |
| +#endif // NET_BASE_WIFI_ACCESS_POINT_INFO_PROVIDER_H_ |