| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #import <CoreWLAN/CoreWLAN.h> | 7 #import <CoreWLAN/CoreWLAN.h> |
| 8 #import <netinet/in.h> | 8 #import <netinet/in.h> |
| 9 #import <SystemConfiguration/SystemConfiguration.h> | 9 #import <SystemConfiguration/SystemConfiguration.h> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/mac/foundation_util.h" | 12 #include "base/mac/foundation_util.h" |
| 13 #include "base/mac/scoped_cftyperef.h" | 13 #include "base/mac/scoped_cftyperef.h" |
| 14 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
| 15 #include "base/mac/sdk_forward_declarations.h" | 15 #include "base/mac/sdk_forward_declarations.h" |
| 16 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 17 #include "base/strings/sys_string_conversions.h" | 18 #include "base/strings/sys_string_conversions.h" |
| 18 #include "components/onc/onc_constants.h" | 19 #include "components/onc/onc_constants.h" |
| 19 #include "components/wifi/network_properties.h" | 20 #include "components/wifi/network_properties.h" |
| 20 #include "crypto/apple_keychain.h" | 21 #include "crypto/apple_keychain.h" |
| 21 | 22 |
| 22 namespace wifi { | 23 namespace wifi { |
| 23 | 24 |
| 24 // Implementation of WiFiService for Mac OS X. | 25 // Implementation of WiFiService for Mac OS X. |
| 25 class WiFiServiceMac : public WiFiService { | 26 class WiFiServiceMac : public WiFiService { |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 DVLOG(1) << "NotifyNetworkChanged: " << network_guid; | 654 DVLOG(1) << "NotifyNetworkChanged: " << network_guid; |
| 654 NetworkGuidList changed_networks(1, network_guid); | 655 NetworkGuidList changed_networks(1, network_guid); |
| 655 event_task_runner_->PostTask( | 656 event_task_runner_->PostTask( |
| 656 FROM_HERE, base::Bind(networks_changed_observer_, changed_networks)); | 657 FROM_HERE, base::Bind(networks_changed_observer_, changed_networks)); |
| 657 } | 658 } |
| 658 | 659 |
| 659 // static | 660 // static |
| 660 WiFiService* WiFiService::Create() { return new WiFiServiceMac(); } | 661 WiFiService* WiFiService::Create() { return new WiFiServiceMac(); } |
| 661 | 662 |
| 662 } // namespace wifi | 663 } // namespace wifi |
| OLD | NEW |