OLD | NEW |
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 "chrome/browser/chromeos/cros/network_library_impl_base.h" | 5 #include "chrome/browser/chromeos/cros/network_library_impl_base.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "chrome/browser/chromeos/cros/native_network_parser.h" | 8 #include "chrome/browser/chromeos/cros/native_network_parser.h" |
9 #include "chrome/browser/chromeos/cros/onc_network_parser.h" | 9 #include "chrome/browser/chromeos/cros/onc_network_parser.h" |
10 #include "chrome/browser/chromeos/network_login_observer.h" | 10 #include "chrome/browser/chromeos/network_login_observer.h" |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
739 LOG(WARNING) << "SetNetworkProfile to Shared for non sharable network: " | 739 LOG(WARNING) << "SetNetworkProfile to Shared for non sharable network: " |
740 << service_path; | 740 << service_path; |
741 return; | 741 return; |
742 } | 742 } |
743 VLOG(1) << "Setting network: " << network->name() | 743 VLOG(1) << "Setting network: " << network->name() |
744 << " to profile type: " << type; | 744 << " to profile type: " << type; |
745 SetProfileType(network, type); | 745 SetProfileType(network, type); |
746 NotifyNetworkManagerChanged(false); | 746 NotifyNetworkManagerChanged(false); |
747 } | 747 } |
748 | 748 |
| 749 NetworkLibraryImplBase::NetworkProfile::NetworkProfile(const std::string& p, |
| 750 NetworkProfileType t) |
| 751 : path(p), |
| 752 type(t) { |
| 753 } |
| 754 |
| 755 NetworkLibraryImplBase::NetworkProfile::~NetworkProfile() {} |
| 756 |
| 757 NetworkLibraryImplBase::ConnectData::ConnectData() |
| 758 : security(SECURITY_NONE), |
| 759 eap_method(EAP_METHOD_UNKNOWN), |
| 760 eap_auth(EAP_PHASE_2_AUTH_AUTO), |
| 761 eap_use_system_cas(false), |
| 762 save_credentials(false), |
| 763 profile_type(PROFILE_NONE) { |
| 764 } |
| 765 |
| 766 NetworkLibraryImplBase::ConnectData::~ConnectData() {} |
| 767 |
749 const NetworkDevice* NetworkLibraryImplBase::FindDeviceByType( | 768 const NetworkDevice* NetworkLibraryImplBase::FindDeviceByType( |
750 ConnectionType type) const { | 769 ConnectionType type) const { |
751 for (NetworkDeviceMap::const_iterator iter = device_map_.begin(); | 770 for (NetworkDeviceMap::const_iterator iter = device_map_.begin(); |
752 iter != device_map_.end(); ++iter) { | 771 iter != device_map_.end(); ++iter) { |
753 if (iter->second && iter->second->type() == type) | 772 if (iter->second && iter->second->type() == type) |
754 return iter->second; | 773 return iter->second; |
755 } | 774 } |
756 return NULL; | 775 return NULL; |
757 } | 776 } |
758 | 777 |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1818 GetTpmInfo(); | 1837 GetTpmInfo(); |
1819 return tpm_slot_; | 1838 return tpm_slot_; |
1820 } | 1839 } |
1821 | 1840 |
1822 const std::string& NetworkLibraryImplBase::GetTpmPin() { | 1841 const std::string& NetworkLibraryImplBase::GetTpmPin() { |
1823 GetTpmInfo(); | 1842 GetTpmInfo(); |
1824 return tpm_pin_; | 1843 return tpm_pin_; |
1825 } | 1844 } |
1826 | 1845 |
1827 } // namespace chromeos | 1846 } // namespace chromeos |
OLD | NEW |