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(); | |
152 protected: | 151 protected: |
153 bool ParseProviderValue(PropertyIndex index, | 152 bool ParseProviderValue(PropertyIndex index, |
154 const base::Value& value, | 153 const base::Value& value, |
155 VirtualNetwork* network); | 154 VirtualNetwork* network); |
156 ProviderType ParseProviderType(const std::string& type); | 155 ProviderType ParseProviderType(const std::string& type); |
157 private: | 156 private: |
158 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); | 157 DISALLOW_COPY_AND_ASSIGN(NativeVirtualNetworkParser); |
159 }; | 158 }; |
160 | 159 |
161 | 160 |
162 } // namespace chromeos | 161 } // namespace chromeos |
163 | 162 |
164 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ | 163 #endif // CHROME_BROWSER_CHROMEOS_CROS_NATIVE_NETWORK_PARSER_H_ |
OLD | NEW |