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 "chromeos/network/onc/onc_utils.h" | 5 #include "chromeos/network/onc/onc_utils.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chromeos/network/network_event_log.h" | 13 #include "chromeos/network/network_event_log.h" |
14 #include "chromeos/network/onc/onc_mapper.h" | 14 #include "chromeos/network/onc/onc_mapper.h" |
15 #include "chromeos/network/onc/onc_signature.h" | 15 #include "chromeos/network/onc/onc_signature.h" |
16 #include "chromeos/network/onc/onc_utils.h" | 16 #include "chromeos/network/onc/onc_utils.h" |
17 #include "chromeos/network/onc/onc_validator.h" | 17 #include "chromeos/network/onc/onc_validator.h" |
| 18 #include "chromeos/network/shill_property_util.h" |
18 #include "crypto/encryptor.h" | 19 #include "crypto/encryptor.h" |
19 #include "crypto/hmac.h" | 20 #include "crypto/hmac.h" |
20 #include "crypto/symmetric_key.h" | 21 #include "crypto/symmetric_key.h" |
21 #include "net/cert/pem_tokenizer.h" | 22 #include "net/cert/pem_tokenizer.h" |
22 #include "net/cert/x509_certificate.h" | 23 #include "net/cert/x509_certificate.h" |
23 | 24 |
24 #define ONC_LOG_WARNING(message) NET_LOG_WARNING("ONC", message) | 25 #define ONC_LOG_WARNING(message) NET_LOG_WARNING("ONC", message) |
25 #define ONC_LOG_ERROR(message) NET_LOG_ERROR("ONC", message) | 26 #define ONC_LOG_ERROR(message) NET_LOG_ERROR("ONC", message) |
26 | 27 |
27 using namespace ::onc; | 28 using namespace ::onc; |
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 if (type == ::onc::network_type::kVPN) | 662 if (type == ::onc::network_type::kVPN) |
662 return NetworkTypePattern::VPN(); | 663 return NetworkTypePattern::VPN(); |
663 if (type == ::onc::network_type::kWiFi) | 664 if (type == ::onc::network_type::kWiFi) |
664 return NetworkTypePattern::WiFi(); | 665 return NetworkTypePattern::WiFi(); |
665 NOTREACHED(); | 666 NOTREACHED(); |
666 return NetworkTypePattern::Default(); | 667 return NetworkTypePattern::Default(); |
667 } | 668 } |
668 | 669 |
669 } // namespace onc | 670 } // namespace onc |
670 } // namespace chromeos | 671 } // namespace chromeos |
OLD | NEW |