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.h" | 5 #include "chrome/browser/chromeos/cros/network_library.h" |
6 | 6 |
7 #include "base/i18n/icu_encoding_detection.h" | 7 #include "base/i18n/icu_encoding_detection.h" |
8 #include "base/i18n/icu_string_conversions.h" | 8 #include "base/i18n/icu_string_conversions.h" |
9 #include "base/i18n/time_formatting.h" | 9 #include "base/i18n/time_formatting.h" |
10 #include "base/json/json_writer.h" // for debug output only. | 10 #include "base/json/json_writer.h" // for debug output only. |
11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
12 #include "base/utf_string_conversion_utils.h" | 12 #include "base/utf_string_conversion_utils.h" |
13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/chromeos/cros/certificate_pattern.h" | 14 #include "chrome/browser/chromeos/cros/certificate_pattern.h" |
15 #include "chrome/browser/chromeos/cros/cros_library.h" | 15 #include "chrome/browser/chromeos/cros/cros_library.h" |
16 #include "chrome/browser/chromeos/cros/native_network_constants.h" | 16 #include "chrome/browser/chromeos/cros/native_network_constants.h" |
17 #include "chrome/browser/chromeos/cros/native_network_parser.h" | 17 #include "chrome/browser/chromeos/cros/native_network_parser.h" |
18 #include "chrome/browser/chromeos/cros/network_library_impl_cros.h" | 18 #include "chrome/browser/chromeos/cros/network_library_impl_cros.h" |
19 #include "chrome/browser/chromeos/cros/network_library_impl_stub.h" | 19 #include "chrome/browser/chromeos/cros/network_library_impl_stub.h" |
20 #include "chrome/common/net/url_util.h" | 20 #include "chrome/common/net/url_util.h" |
21 #include "chrome/common/net/x509_certificate_model.h" | 21 #include "chrome/common/net/x509_certificate_model.h" |
| 22 #include "chromeos/network/cros_network_functions.h" |
22 #include "content/public/browser/browser_thread.h" | 23 #include "content/public/browser/browser_thread.h" |
23 #include "grit/generated_resources.h" | 24 #include "grit/generated_resources.h" |
24 #include "third_party/cros_system_api/dbus/service_constants.h" | 25 #include "third_party/cros_system_api/dbus/service_constants.h" |
25 #include "ui/base/l10n/l10n_util.h" | 26 #include "ui/base/l10n/l10n_util.h" |
26 | 27 |
27 using content::BrowserThread; | 28 using content::BrowserThread; |
28 | 29 |
29 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
30 // Implementation notes. | 31 // Implementation notes. |
31 // NetworkLibraryImpl manages a series of classes that describe network devices | 32 // NetworkLibraryImpl manages a series of classes that describe network devices |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 791 |
791 //////////////////////////////////////////////////////////////////////////////// | 792 //////////////////////////////////////////////////////////////////////////////// |
792 // WirelessNetwork | 793 // WirelessNetwork |
793 | 794 |
794 //////////////////////////////////////////////////////////////////////////////// | 795 //////////////////////////////////////////////////////////////////////////////// |
795 // CellTower | 796 // CellTower |
796 | 797 |
797 CellTower::CellTower() {} | 798 CellTower::CellTower() {} |
798 | 799 |
799 //////////////////////////////////////////////////////////////////////////////// | 800 //////////////////////////////////////////////////////////////////////////////// |
800 // WifiAccessPoint | |
801 | |
802 WifiAccessPoint::WifiAccessPoint() {} | |
803 | |
804 //////////////////////////////////////////////////////////////////////////////// | |
805 // CellularApn | 801 // CellularApn |
806 | 802 |
807 CellularApn::CellularApn() {} | 803 CellularApn::CellularApn() {} |
808 | 804 |
809 CellularApn::CellularApn( | 805 CellularApn::CellularApn( |
810 const std::string& apn, const std::string& network_id, | 806 const std::string& apn, const std::string& network_id, |
811 const std::string& username, const std::string& password) | 807 const std::string& username, const std::string& password) |
812 : apn(apn), network_id(network_id), | 808 : apn(apn), network_id(network_id), |
813 username(username), password(password) { | 809 username(username), password(password) { |
814 } | 810 } |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1350 NetworkLibrary* impl; | 1346 NetworkLibrary* impl; |
1351 if (stub) | 1347 if (stub) |
1352 impl = new NetworkLibraryImplStub(); | 1348 impl = new NetworkLibraryImplStub(); |
1353 else | 1349 else |
1354 impl = new NetworkLibraryImplCros(); | 1350 impl = new NetworkLibraryImplCros(); |
1355 impl->Init(); | 1351 impl->Init(); |
1356 return impl; | 1352 return impl; |
1357 } | 1353 } |
1358 | 1354 |
1359 } // namespace chromeos | 1355 } // namespace chromeos |
OLD | NEW |