Index: net/base/net_util.h |
diff --git a/net/base/net_util.h b/net/base/net_util.h |
index c74dfd2ea48486b08e16be9fdb700b9d99f06bd0..fdc0c584f076c3622b7f81eda0174d0fb90a71d3 100644 |
--- a/net/base/net_util.h |
+++ b/net/base/net_util.h |
@@ -498,6 +498,24 @@ enum WifiPHYLayerProtocol { |
// Currently only available on OS_WIN. |
NET_EXPORT WifiPHYLayerProtocol GetWifiPHYLayerProtocol(); |
+enum WifiOptions { |
+ // Disables background SSID scans. |
+ WIFI_OPTIONS_DISABLE_SCAN = 1, |
+ // Enables media streaming mode. |
+ WIFI_OPTIONS_MEDIA_STREAMING_MODE = 2 |
+}; |
pauljensen
2014/09/18 14:25:35
Since these should be ORed together, I suggest:
1-
hubbe
2014/09/18 18:21:05
Done.
|
+ |
+class NET_EXPORT ScopedWifiOptions { |
+ public: |
+ virtual ~ScopedWifiOptions(); |
+}; |
pauljensen
2014/09/18 14:16:50
private:
DISALLOW_COPY_AND_ASSIGN(ScopedWifiOptio
hubbe
2014/09/18 18:21:05
Done.
|
+ |
+// Set temporary options on all wifi interfaces. |
+// |options| is an ORed bitfield of WifiOptions. |
+// Options are automatically disabled when the scoped pointer |
+// is freed. Currently only available on OS_WIN. |
+NET_EXPORT scoped_ptr<ScopedWifiOptions> SetWifiOptions(int options); |
+ |
// Returns number of matching initial bits between the addresses |a1| and |a2|. |
unsigned CommonPrefixLength(const IPAddressNumber& a1, |
const IPAddressNumber& a2); |