Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: chromeos/network/onc/onc_normalizer.h

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/network/onc/onc_merger_unittest.cc ('k') | chromeos/network/onc/onc_normalizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_NORMALIZER_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_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 "chrome/browser/chromeos/network_settings/onc_mapper.h" 9 #include "chromeos/chromeos_export.h"
10 #include "chromeos/network/onc/onc_mapper.h"
10 11
11 namespace chromeos { 12 namespace chromeos {
12 namespace onc { 13 namespace onc {
13 14
14 struct OncValueSignature; 15 struct OncValueSignature;
15 16
16 class Normalizer : public Mapper { 17 class CHROMEOS_EXPORT Normalizer : public Mapper {
17 public: 18 public:
18 explicit Normalizer(bool remove_recommended_fields); 19 explicit Normalizer(bool remove_recommended_fields);
19 virtual ~Normalizer(); 20 virtual ~Normalizer();
20 21
21 // Removes all fields that are ignored/irrelevant because of the value of 22 // Removes all fields that are ignored/irrelevant because of the value of
22 // other fields. E.g. the "WiFi" field is irrelevant if the configurations 23 // other fields. E.g. the "WiFi" field is irrelevant if the configurations
23 // type is "Ethernet". If |remove_recommended_fields| is true, kRecommended 24 // type is "Ethernet". If |remove_recommended_fields| is true, kRecommended
24 // arrays are removed (the array itself and not the field names listed 25 // arrays are removed (the array itself and not the field names listed
25 // there). |object_signature| must point to one of the signatures in 26 // there). |object_signature| must point to one of the signatures in
26 // |onc_signature.h|. 27 // |onc_signature.h|.
(...skipping 12 matching lines...) Expand all
39 void NormalizeNetworkConfiguration(base::DictionaryValue* network); 40 void NormalizeNetworkConfiguration(base::DictionaryValue* network);
40 41
41 const bool remove_recommended_fields_; 42 const bool remove_recommended_fields_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(Normalizer); 44 DISALLOW_COPY_AND_ASSIGN(Normalizer);
44 }; 45 };
45 46
46 } // namespace onc 47 } // namespace onc
47 } // namespace chromeos 48 } // namespace chromeos
48 49
49 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_NORMALIZER_H_ 50 #endif // CHROMEOS_NETWORK_ONC_ONC_NORMALIZER_H_
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_merger_unittest.cc ('k') | chromeos/network/onc/onc_normalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698