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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 class NativeVirtualNetworkParser : public NativeNetworkParser { | 142 class NativeVirtualNetworkParser : public NativeNetworkParser { |
143 public: | 143 public: |
144 NativeVirtualNetworkParser(); | 144 NativeVirtualNetworkParser(); |
145 virtual ~NativeVirtualNetworkParser(); | 145 virtual ~NativeVirtualNetworkParser(); |
146 virtual bool ParseValue(PropertyIndex index, | 146 virtual bool ParseValue(PropertyIndex index, |
147 const base::Value& value, | 147 const base::Value& value, |
148 Network* network) OVERRIDE; | 148 Network* network) OVERRIDE; |
149 virtual bool UpdateNetworkFromInfo(const base::DictionaryValue& info, | 149 virtual bool UpdateNetworkFromInfo(const base::DictionaryValue& info, |
150 Network* network) OVERRIDE; | 150 Network* network) OVERRIDE; |
| 151 static const EnumMapper<ProviderType>* provider_type_mapper(); |
151 protected: | 152 protected: |
152 bool ParseProviderValue(PropertyIndex index, | 153 bool ParseProviderValue(PropertyIndex index, |
153 const base::Value& value, | 154 const base::Value& value, |
154 VirtualNetwork* network); | 155 VirtualNetwork* network); |
155 ProviderType ParseProviderType(const std::string& type); | 156 ProviderType ParseProviderType(const std::string& type); |
156 private: | 157 private: |
157 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); | 158 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); |
158 }; | 159 }; |
159 | 160 |
160 | 161 |
161 } // namespace chromeos | 162 } // namespace chromeos |
162 | 163 |
163 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ | 164 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ |
OLD | NEW |