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

Unified Diff: net/base/net_util.h

Issue 566243005: Cast: Allow extension to control wifi options on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: posix fixed again Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: net/base/net_util.h
diff --git a/net/base/net_util.h b/net/base/net_util.h
index c74dfd2ea48486b08e16be9fdb700b9d99f06bd0..bcb244c1f3fe3fb69140aed16cc2154ddeee624d 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -30,6 +30,7 @@ class GURL;
namespace base {
class Time;
+class LifetimeInterface;
}
namespace url {
@@ -498,6 +499,19 @@ 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
+};
+
+// Set temporary options on all interfaces.
pauljensen 2014/09/16 15:01:18 Can you clarify what interfaces is? WiFi network
hubbe 2014/09/16 21:06:50 Done.
+// |options| is an ORed bitfield of WifiOptions.
+// Options are automatically disabled when the scoped pointer
+// is freed. Currently only available on OS_WIN.
+scoped_ptr<base::LifetimeInterface> SetWifiOptions(int options);
pauljensen 2014/09/16 15:01:18 Shouldn't this be NET_EXPORT?
hubbe 2014/09/16 21:06:50 Yes, yes it should. (Done)
+
// Returns number of matching initial bits between the addresses |a1| and |a2|.
unsigned CommonPrefixLength(const IPAddressNumber& a1,
const IPAddressNumber& a2);

Powered by Google App Engine
This is Rietveld 408576698