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

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

Issue 1221033002: Add proxy_config component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update copyrights Created 5 years, 5 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 | « chrome/browser/DEPS ('k') | 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
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_NET_ONC_UTILS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
6 #define CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_ 6 #define CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 namespace chromeos { 24 namespace chromeos {
25 25
26 class NetworkState; 26 class NetworkState;
27 27
28 namespace onc { 28 namespace onc {
29 29
30 // Translates |onc_proxy_settings|, which has to be a valid ONC ProxySettings 30 // Translates |onc_proxy_settings|, which has to be a valid ONC ProxySettings
31 // dictionary, to a ProxyConfig dictionary (see 31 // dictionary, to a ProxyConfig dictionary (see
32 // chrome/browser/prefs/proxy_config_dictionary.h). 32 // components/proxy_config/proxy_config_dictionary.h).
33 // 33 //
34 // This function is used to translate ONC ProxySettings to the "ProxyConfig" 34 // This function is used to translate ONC ProxySettings to the "ProxyConfig"
35 // field of the Shill configuration. 35 // field of the Shill configuration.
36 scoped_ptr<base::DictionaryValue> ConvertOncProxySettingsToProxyConfig( 36 scoped_ptr<base::DictionaryValue> ConvertOncProxySettingsToProxyConfig(
37 const base::DictionaryValue& onc_proxy_settings); 37 const base::DictionaryValue& onc_proxy_settings);
38 38
39 // Replaces string placeholders in |network_configs|, which must be a list of 39 // Replaces string placeholders in |network_configs|, which must be a list of
40 // ONC NetworkConfigurations. Currently only user name placeholders are 40 // ONC NetworkConfigurations. Currently only user name placeholders are
41 // implemented, which are replaced by attributes of the logged-in user with 41 // implemented, which are replaced by attributes of the logged-in user with
42 // |hashed_username|. 42 // |hashed_username|.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Convenience function to check only whether a policy for a network exists. 77 // Convenience function to check only whether a policy for a network exists.
78 bool HasPolicyForNetwork(const PrefService* profile_prefs, 78 bool HasPolicyForNetwork(const PrefService* profile_prefs,
79 const PrefService* local_state_prefs, 79 const PrefService* local_state_prefs,
80 const NetworkState& network); 80 const NetworkState& network);
81 81
82 } // namespace onc 82 } // namespace onc
83 } // namespace chromeos 83 } // namespace chromeos
84 84
85 #endif // CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_ 85 #endif // CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/chromeos/net/onc_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698