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

Side by Side Diff: chrome/browser/chromeos/net/onc_utils.h

Issue 11664005: Extending the translation from ONC to Shill. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 11 months 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/onc_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NET_ONC_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "chromeos/network/onc/onc_constants.h"
10
11 namespace base {
12 class DictionaryValue;
13 }
14
15 namespace chromeos {
16
17 class NetworkUIData;
18
19 namespace onc {
20
21 // Translates |onc_proxy_settings|, which has to be a valid ONC ProxySettings
22 // dictionary, to a ProxyConfig dictionary (see
23 // chrome/browser/prefs/proxy_config_dictionary.h).
24 //
25 // This function is used to translate ONC ProxySettings to the "ProxyConfig"
26 // field of the Shill configuration.
27 scoped_ptr<base::DictionaryValue> ConvertOncProxySettingsToProxyConfig(
28 const base::DictionaryValue& onc_proxy_settings);
29
30 // Creates a NetworkUIData object from |onc_network|, which has to be a valid
31 // ONC NetworkConfiguration dictionary.
32 //
33 // This function is used to create the "UIData" field of the Shill
34 // configuration.
35 scoped_ptr<NetworkUIData> CreateUIData(
36 ONCSource onc_source,
37 const base::DictionaryValue& onc_network);
38
39 } // namespace onc
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/onc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698