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

Side by Side Diff: chrome/browser/chromeos/network_settings/onc_merger.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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_MERGER_H_
6 #define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_MERGER_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace base {
11 class DictionaryValue;
12 }
13
14 namespace chromeos {
15 namespace onc {
16
17 // Merges the given |user_onc| and |shared_onc| settings with the given
18 // |user_policy| and |device_policy| settings. Each can be omitted by prodiving
19 // a NULL pointer. Each dictionary has to be a valid ONC dictionary. They don't
20 // have to describe top-level ONC but should refer to the same section in
21 // ONC. |user_onc| and |shared_onc| should not contain kRecommended fields. The
22 // resulting dictionary is valid ONC but may contain dispensable fields (e.g. in
23 // a network with type: "WiFi", the field "VPN" is dispensable) that can be
24 // removed by the caller using the ONC normalizer. ONC conformance of the
25 // arguments is not checked. Use ONC validator for that.
26 scoped_ptr<base::DictionaryValue> MergeSettingsWithPolicies(
27 const base::DictionaryValue* user_policy,
28 const base::DictionaryValue* device_policy,
29 const base::DictionaryValue* user_onc,
30 const base::DictionaryValue* shared_onc);
31
32 } // namespace onc
33 } // namespace chromeos
34
35 #endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_MERGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/network_settings/onc_mapper.cc ('k') | chrome/browser/chromeos/network_settings/onc_merger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698