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

Side by Side Diff: components/wifi/wifi_service_win.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/wifi/wifi_service_mac.mm ('k') | components/wifi/wifi_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/wifi/wifi_service.h" 5 #include "components/wifi/wifi_service.h"
6 6
7 #include <iphlpapi.h> 7 #include <iphlpapi.h>
8 #include <objbase.h> 8 #include <objbase.h>
9 #include <stddef.h>
10 #include <stdint.h>
9 #include <wlanapi.h> 11 #include <wlanapi.h>
10 12
11 #include <set> 13 #include <set>
12 14
13 #include "base/base_paths_win.h" 15 #include "base/base_paths_win.h"
14 #include "base/bind.h" 16 #include "base/bind.h"
15 #include "base/files/file_path.h" 17 #include "base/files/file_path.h"
18 #include "base/macros.h"
16 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
17 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
18 #include "base/path_service.h" 21 #include "base/path_service.h"
19 #include "base/strings/string16.h" 22 #include "base/strings/string16.h"
20 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
21 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
22 #include "base/win/registry.h" 25 #include "base/win/registry.h"
23 #include "components/onc/onc_constants.h" 26 #include "components/onc/onc_constants.h"
24 #include "components/wifi/network_properties.h" 27 #include "components/wifi/network_properties.h"
25 #include "third_party/libxml/chromium/libxml_utils.h" 28 #include "third_party/libxml/chromium/libxml_utils.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void SetEventObservers( 225 void SetEventObservers(
223 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 226 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
224 const NetworkGuidListCallback& networks_changed_observer, 227 const NetworkGuidListCallback& networks_changed_observer,
225 const NetworkGuidListCallback& network_list_changed_observer) override; 228 const NetworkGuidListCallback& network_list_changed_observer) override;
226 229
227 void RequestConnectedNetworkUpdate() override {} 230 void RequestConnectedNetworkUpdate() override {}
228 231
229 void GetConnectedNetworkSSID(std::string* ssid, std::string* error) override; 232 void GetConnectedNetworkSSID(std::string* ssid, std::string* error) override;
230 233
231 private: 234 private:
232 typedef int32 EncryptionType; 235 typedef int32_t EncryptionType;
233 enum EncryptionTypeEnum { 236 enum EncryptionTypeEnum {
234 kEncryptionTypeAny = 0, 237 kEncryptionTypeAny = 0,
235 kEncryptionTypeAES = 1, 238 kEncryptionTypeAES = 1,
236 kEncryptionTypeTKIP = 2 239 kEncryptionTypeTKIP = 2
237 }; 240 };
238 241
239 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification 242 // Static callback for Windows WLAN_NOTIFICATION. Calls OnWlanNotification
240 // on WiFiServiceImpl passed back as |context|. 243 // on WiFiServiceImpl passed back as |context|.
241 static void __stdcall OnWlanNotificationCallback( 244 static void __stdcall OnWlanNotificationCallback(
242 PWLAN_NOTIFICATION_DATA wlan_notification_data, 245 PWLAN_NOTIFICATION_DATA wlan_notification_data,
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 DVLOG(1) << "NotifyNetworkChanged: " << network_guid; 1892 DVLOG(1) << "NotifyNetworkChanged: " << network_guid;
1890 NetworkGuidList changed_networks(1, network_guid); 1893 NetworkGuidList changed_networks(1, network_guid);
1891 event_task_runner_->PostTask( 1894 event_task_runner_->PostTask(
1892 FROM_HERE, base::Bind(networks_changed_observer_, changed_networks)); 1895 FROM_HERE, base::Bind(networks_changed_observer_, changed_networks));
1893 } 1896 }
1894 } 1897 }
1895 1898
1896 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); } 1899 WiFiService* WiFiService::Create() { return new WiFiServiceImpl(); }
1897 1900
1898 } // namespace wifi 1901 } // namespace wifi
OLDNEW
« no previous file with comments | « components/wifi/wifi_service_mac.mm ('k') | components/wifi/wifi_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698