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

Side by Side Diff: net/base/net_util_win.cc

Issue 238793007: Added GetNetworkOperatorID util func in net/base/net_util and a non-trivial implementation for Andr… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 8 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 unified diff | Download patch
« net/base/net_util.h ('K') | « net/base/net_util_posix.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/base/net_util.h" 5 #include "net/base/net_util.h"
6 6
7 #include <iphlpapi.h> 7 #include <iphlpapi.h>
8 #include <wlanapi.h> 8 #include <wlanapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 return WIFI_PHY_LAYER_PROTOCOL_B; 278 return WIFI_PHY_LAYER_PROTOCOL_B;
279 case dot11_phy_type_erp: 279 case dot11_phy_type_erp:
280 return WIFI_PHY_LAYER_PROTOCOL_G; 280 return WIFI_PHY_LAYER_PROTOCOL_G;
281 case dot11_phy_type_ht: 281 case dot11_phy_type_ht:
282 return WIFI_PHY_LAYER_PROTOCOL_N; 282 return WIFI_PHY_LAYER_PROTOCOL_N;
283 default: 283 default:
284 return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN; 284 return WIFI_PHY_LAYER_PROTOCOL_UNKNOWN;
285 } 285 }
286 } 286 }
287 287
288 std::string GetNetworkOperatorID() {
289 return "";
bengr 2014/04/21 20:50:58 Does it makes sense to have a separate return valu
bolian 2014/04/21 22:37:17 Android API returns the empty string if no network
290 }
291
288 } // namespace net 292 } // namespace net
OLDNEW
« net/base/net_util.h ('K') | « net/base/net_util_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698