Move onc and proxy pref names to components.
This is some code cleanup in anticipation of moving chromeos
proxy configuration related code out of src/chrome so that
it can be accessed by networkingPrivate and ash.
This CL also namespaces some pseudo-prefs in proxy_cros_settings_parser.cc which were in the global 'chromeos' namespace before, which was super confusing because they aren't actually stored in the pref store, just set to look like prefs for the (soon to be deprecated) options UI code.
BUG=658015
Review-Url: https://codereview.chromium.org/2445153002
Cr-Commit-Position: refs/heads/master@{#427824}
diff --git a/components/onc/onc_pref_names.h b/components/onc/onc_pref_names.h
new file mode 100644
index 0000000..372e9c8d
--- /dev/null
+++ b/components/onc/onc_pref_names.h
@@ -0,0 +1,32 @@
+// Copyright 2016 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 COMPONENTS_ONC_PREF_NAMES_H_
+#define COMPONENTS_ONC_PREF_NAMES_H_
+
+#include "components/onc/onc_export.h"
+
+class PrefRegistrySimple;
+
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
+namespace onc {
+
+namespace prefs {
+
+ONC_EXPORT extern const char kDeviceOpenNetworkConfiguration[];
+ONC_EXPORT extern const char kOpenNetworkConfiguration[];
+
+} // namespace prefs
+
+ONC_EXPORT void RegisterPrefs(PrefRegistrySimple* registry);
+
+ONC_EXPORT void RegisterProfilePrefs(
+ user_prefs::PrefRegistrySyncable* registry);
+
+} // namespace onc
+
+#endif // COMPONENTS_ONC_PREF_NAMES_H_