| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/cros/network_parser.h" | 10 #include "chrome/browser/chromeos/cros/network_parser.h" |
| 11 #include "base/compiler_specific.h" // for OVERRIDE | 11 #include "base/compiler_specific.h" // for OVERRIDE |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 class ListValue; | 15 class ListValue; |
| 16 class Value; | 16 class Value; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace chromeos { | 19 namespace chromeos { |
| 20 | 20 |
| 21 // This is the network device parser that parses the data from the | 21 // This is the network device parser that parses the data from the |
| 22 // network stack on the native platform. Currently it parses | 22 // network stack on the native platform. Currently it parses |
| 23 // FlimFlam-provided information. | 23 // Shill-provided information. |
| 24 class NativeNetworkDeviceParser : public NetworkDeviceParser { | 24 class NativeNetworkDeviceParser : public NetworkDeviceParser { |
| 25 public: | 25 public: |
| 26 NativeNetworkDeviceParser(); | 26 NativeNetworkDeviceParser(); |
| 27 virtual ~NativeNetworkDeviceParser(); | 27 virtual ~NativeNetworkDeviceParser(); |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 virtual NetworkDevice* CreateNewNetworkDevice( | 30 virtual NetworkDevice* CreateNewNetworkDevice( |
| 31 const std::string& device_path) OVERRIDE; | 31 const std::string& device_path) OVERRIDE; |
| 32 virtual bool ParseValue(PropertyIndex index, | 32 virtual bool ParseValue(PropertyIndex index, |
| 33 const base::Value& value, | 33 const base::Value& value, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 47 bool* out_enabled); | 47 bool* out_enabled); |
| 48 virtual TechnologyFamily ParseTechnologyFamily( | 48 virtual TechnologyFamily ParseTechnologyFamily( |
| 49 const std::string& technology_family); | 49 const std::string& technology_family); |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 DISALLOW_COPY_AND_ASSIGN(NativeNetworkDeviceParser); | 52 DISALLOW_COPY_AND_ASSIGN(NativeNetworkDeviceParser); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 // This is the network parser that parses the data from the network | 55 // This is the network parser that parses the data from the network |
| 56 // stack on the native platform. Currently it parses | 56 // stack on the native platform. Currently it parses |
| 57 // FlimFlam-provided information. | 57 // Shill-provided information. |
| 58 class NativeNetworkParser : public NetworkParser { | 58 class NativeNetworkParser : public NetworkParser { |
| 59 public: | 59 public: |
| 60 NativeNetworkParser(); | 60 NativeNetworkParser(); |
| 61 virtual ~NativeNetworkParser(); | 61 virtual ~NativeNetworkParser(); |
| 62 static const EnumMapper<PropertyIndex>* property_mapper(); | 62 static const EnumMapper<PropertyIndex>* property_mapper(); |
| 63 static const EnumMapper<ConnectionType>* network_type_mapper(); | 63 static const EnumMapper<ConnectionType>* network_type_mapper(); |
| 64 static const EnumMapper<ConnectionSecurity>* network_security_mapper(); | 64 static const EnumMapper<ConnectionSecurity>* network_security_mapper(); |
| 65 static const EnumMapper<EAPMethod>* network_eap_method_mapper(); | 65 static const EnumMapper<EAPMethod>* network_eap_method_mapper(); |
| 66 static const EnumMapper<EAPPhase2Auth>* network_eap_auth_mapper(); | 66 static const EnumMapper<EAPPhase2Auth>* network_eap_auth_mapper(); |
| 67 static const ConnectionType ParseConnectionType(const std::string& type); | 67 static const ConnectionType ParseConnectionType(const std::string& type); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 VirtualNetwork* network); | 166 VirtualNetwork* network); |
| 167 ProviderType ParseProviderType(const std::string& type); | 167 ProviderType ParseProviderType(const std::string& type); |
| 168 private: | 168 private: |
| 169 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); | 169 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 | 172 |
| 173 } // namespace chromeos | 173 } // namespace chromeos |
| 174 | 174 |
| 175 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ | 175 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ |
| OLD | NEW |