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 #ifndef CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ | 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ |
6 #define CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ | 6 #define CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
10 #include "chromeos/network/onc/onc_mapper.h" | 10 #include "chromeos/network/onc/onc_mapper.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // there). |object_signature| must point to one of the signatures in | 26 // there). |object_signature| must point to one of the signatures in |
27 // |onc_signature.h|. | 27 // |onc_signature.h|. |
28 scoped_ptr<base::DictionaryValue> NormalizeObject( | 28 scoped_ptr<base::DictionaryValue> NormalizeObject( |
29 const OncValueSignature* object_signature, | 29 const OncValueSignature* object_signature, |
30 const base::DictionaryValue& onc_object); | 30 const base::DictionaryValue& onc_object); |
31 | 31 |
32 private: | 32 private: |
33 // Dispatch to the right normalization function according to |signature|. | 33 // Dispatch to the right normalization function according to |signature|. |
34 virtual scoped_ptr<base::DictionaryValue> MapObject( | 34 virtual scoped_ptr<base::DictionaryValue> MapObject( |
35 const OncValueSignature& signature, | 35 const OncValueSignature& signature, |
36 const base::DictionaryValue& onc_object) OVERRIDE; | 36 const base::DictionaryValue& onc_object, |
| 37 bool* error) OVERRIDE; |
37 | 38 |
38 void NormalizeIPsec(base::DictionaryValue* ipsec); | 39 void NormalizeIPsec(base::DictionaryValue* ipsec); |
39 void NormalizeVPN(base::DictionaryValue* vpn); | 40 void NormalizeVPN(base::DictionaryValue* vpn); |
40 void NormalizeNetworkConfiguration(base::DictionaryValue* network); | 41 void NormalizeNetworkConfiguration(base::DictionaryValue* network); |
41 | 42 |
42 const bool remove_recommended_fields_; | 43 const bool remove_recommended_fields_; |
43 | 44 |
44 DISALLOW_COPY_AND_ASSIGN(Normalizer); | 45 DISALLOW_COPY_AND_ASSIGN(Normalizer); |
45 }; | 46 }; |
46 | 47 |
47 } // namespace onc | 48 } // namespace onc |
48 } // namespace chromeos | 49 } // namespace chromeos |
49 | 50 |
50 #endif // CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ | 51 #endif // CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_ |
OLD | NEW |