| 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/onc_network_parser.h" | 5 #include "chrome/browser/chromeos/cros/onc_network_parser.h" |
| 6 | 6 |
| 7 #include <keyhi.h> | 7 #include <keyhi.h> |
| 8 #include <pk11pub.h> | 8 #include <pk11pub.h> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| 11 #include "base/json/json_value_serializer.h" | 11 #include "base/json/json_string_value_serializer.h" |
| 12 #include "chrome/browser/chromeos/login/user_manager.h" | 12 #include "chrome/browser/chromeos/login/user_manager.h" |
| 13 #include "base/json/json_writer.h" // for debug output only. | 13 #include "base/json/json_writer.h" // for debug output only. |
| 14 #include "base/stringprintf.h" | 14 #include "base/stringprintf.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "chrome/browser/chromeos/cros/certificate_pattern.h" | 16 #include "chrome/browser/chromeos/cros/certificate_pattern.h" |
| 17 #include "chrome/browser/chromeos/cros/native_network_constants.h" | 17 #include "chrome/browser/chromeos/cros/native_network_constants.h" |
| 18 #include "chrome/browser/chromeos/cros/native_network_parser.h" | 18 #include "chrome/browser/chromeos/cros/native_network_parser.h" |
| 19 #include "chrome/browser/chromeos/cros/network_library.h" | 19 #include "chrome/browser/chromeos/cros/network_library.h" |
| 20 #include "chrome/browser/chromeos/cros/onc_constants.h" | 20 #include "chrome/browser/chromeos/cros/onc_constants.h" |
| 21 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | 21 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
| (...skipping 1943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1965 // on the value of AuthenticationType. | 1965 // on the value of AuthenticationType. |
| 1966 { "L2TP-IPsec", PROVIDER_TYPE_L2TP_IPSEC_PSK }, | 1966 { "L2TP-IPsec", PROVIDER_TYPE_L2TP_IPSEC_PSK }, |
| 1967 { "OpenVPN", PROVIDER_TYPE_OPEN_VPN }, | 1967 { "OpenVPN", PROVIDER_TYPE_OPEN_VPN }, |
| 1968 }; | 1968 }; |
| 1969 CR_DEFINE_STATIC_LOCAL(EnumMapper<ProviderType>, parser, | 1969 CR_DEFINE_STATIC_LOCAL(EnumMapper<ProviderType>, parser, |
| 1970 (table, arraysize(table), PROVIDER_TYPE_MAX)); | 1970 (table, arraysize(table), PROVIDER_TYPE_MAX)); |
| 1971 return parser.Get(type); | 1971 return parser.Get(type); |
| 1972 } | 1972 } |
| 1973 | 1973 |
| 1974 } // namespace chromeos | 1974 } // namespace chromeos |
| OLD | NEW |