blob: d283e87836ae1ef4704c045e8ad83b6c3f5f5ec0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
#define CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
#include "base/memory/scoped_ptr.h"
#include "chromeos/network/onc/onc_constants.h"
namespace base {
class DictionaryValue;
}
namespace chromeos {
class NetworkUIData;
namespace onc {
// Translates |onc_proxy_settings|, which has to be a valid ONC ProxySettings
// dictionary, to a ProxyConfig dictionary (see
// chrome/browser/prefs/proxy_config_dictionary.h).
//
// This function is used to translate ONC ProxySettings to the "ProxyConfig"
// field of the Shill configuration.
scoped_ptr<base::DictionaryValue> ConvertOncProxySettingsToProxyConfig(
const base::DictionaryValue& onc_proxy_settings);
} // namespace onc
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
|