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

Side by Side Diff: components/onc/onc_constants.h

Issue 552113002: Add ONC 'Source' configuration property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_279351_internet_options_9a
Patch Set: Rebase Created 6 years, 3 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 | « components/onc/docs/onc_spec.html ('k') | components/onc/onc_constants.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_ 4 #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_
5 #define COMPONENTS_ONC_ONC_CONSTANTS_H_ 5 #define COMPONENTS_ONC_ONC_CONSTANTS_H_
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "components/onc/onc_export.h" 9 #include "components/onc/onc_export.h"
10 10
11 // Constants for ONC properties. 11 // Constants for ONC properties.
12 namespace onc { 12 namespace onc {
13 13
14 // Indicates from which source an ONC blob comes from. 14 // Indicates from which source an ONC blob comes from.
15 enum ONCSource { 15 enum ONCSource {
16 ONC_SOURCE_UNKNOWN,
16 ONC_SOURCE_NONE, 17 ONC_SOURCE_NONE,
17 ONC_SOURCE_USER_IMPORT, 18 ONC_SOURCE_USER_IMPORT,
18 ONC_SOURCE_DEVICE_POLICY, 19 ONC_SOURCE_DEVICE_POLICY,
19 ONC_SOURCE_USER_POLICY, 20 ONC_SOURCE_USER_POLICY,
20 }; 21 };
21 22
22 // These keys are used to augment the dictionary resulting from merging the 23 // These keys are used to augment the dictionary resulting from merging the
23 // different settings and policies. 24 // different settings and policies.
24 25
25 // The setting that Shill declared to be using. For example, if no policy and no 26 // The setting that Shill declared to be using. For example, if no policy and no
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 ONC_EXPORT extern const char kGUID[]; 63 ONC_EXPORT extern const char kGUID[];
63 ONC_EXPORT extern const char kIPConfigs[]; 64 ONC_EXPORT extern const char kIPConfigs[];
64 ONC_EXPORT extern const char kSavedIPConfig[]; 65 ONC_EXPORT extern const char kSavedIPConfig[];
65 ONC_EXPORT extern const char kStaticIPConfig[]; 66 ONC_EXPORT extern const char kStaticIPConfig[];
66 ONC_EXPORT extern const char kMacAddress[]; 67 ONC_EXPORT extern const char kMacAddress[];
67 ONC_EXPORT extern const char kName[]; 68 ONC_EXPORT extern const char kName[];
68 ONC_EXPORT extern const char kNameServers[]; 69 ONC_EXPORT extern const char kNameServers[];
69 ONC_EXPORT extern const char kPriority[]; 70 ONC_EXPORT extern const char kPriority[];
70 ONC_EXPORT extern const char kProxySettings[]; 71 ONC_EXPORT extern const char kProxySettings[];
71 ONC_EXPORT extern const char kSearchDomains[]; 72 ONC_EXPORT extern const char kSearchDomains[];
73 ONC_EXPORT extern const char kSource[];
74 ONC_EXPORT extern const char kSourceDevice[];
75 ONC_EXPORT extern const char kSourceDevicePolicy[];
76 ONC_EXPORT extern const char kSourceNone[];
77 ONC_EXPORT extern const char kSourceUser[];
78 ONC_EXPORT extern const char kSourceUserPolicy[];
72 ONC_EXPORT extern const char kConnectionState[]; 79 ONC_EXPORT extern const char kConnectionState[];
73 ONC_EXPORT extern const char kRestrictedConnectivity[]; 80 ONC_EXPORT extern const char kRestrictedConnectivity[];
74 ONC_EXPORT extern const char kConnectable[]; 81 ONC_EXPORT extern const char kConnectable[];
75 ONC_EXPORT extern const char kErrorState[]; 82 ONC_EXPORT extern const char kErrorState[];
76 ONC_EXPORT extern const char kType[]; 83 ONC_EXPORT extern const char kType[];
77 ONC_EXPORT extern const char kVPN[]; 84 ONC_EXPORT extern const char kVPN[];
78 ONC_EXPORT extern const char kWiFi[]; 85 ONC_EXPORT extern const char kWiFi[];
79 86
80 ONC_EXPORT extern std::string CellularProperty(const std::string& property); 87 ONC_EXPORT extern std::string CellularProperty(const std::string& property);
81 ONC_EXPORT extern std::string VpnProperty(const std::string& property); 88 ONC_EXPORT extern std::string VpnProperty(const std::string& property);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 ONC_EXPORT extern const char kWPAD[]; 376 ONC_EXPORT extern const char kWPAD[];
370 } // namespace proxy 377 } // namespace proxy
371 378
372 namespace global_network_config { 379 namespace global_network_config {
373 ONC_EXPORT extern const char kAllowOnlyPolicyNetworksToAutoconnect[]; 380 ONC_EXPORT extern const char kAllowOnlyPolicyNetworksToAutoconnect[];
374 } // global_network_config 381 } // global_network_config
375 382
376 } // namespace onc 383 } // namespace onc
377 384
378 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_ 385 #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_
OLDNEW
« no previous file with comments | « components/onc/docs/onc_spec.html ('k') | components/onc/onc_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698