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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/net/onc_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/net/onc_utils.h
diff --git a/chrome/browser/chromeos/net/onc_utils.h b/chrome/browser/chromeos/net/onc_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..a1ddb32e978f22fc29e7c99034263ea41c2fb7e4
--- /dev/null
+++ b/chrome/browser/chromeos/net/onc_utils.h
@@ -0,0 +1,42 @@
+// 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);
+
+// Creates a NetworkUIData object from |onc_network|, which has to be a valid
+// ONC NetworkConfiguration dictionary.
+//
+// This function is used to create the "UIData" field of the Shill
+// configuration.
+scoped_ptr<NetworkUIData> CreateUIData(
+ ONCSource onc_source,
+ const base::DictionaryValue& onc_network);
+
+} // namespace onc
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_NET_ONC_UTILS_H_
« 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