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

Side by Side Diff: chromeos/network/onc/onc_utils.h

Issue 433143002: Split onc::IsRecommendedValue into onc_utils.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 | Annotate | Revision Log
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 CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 5 #ifndef CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 6 #define CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // encoding. Returns true if all references could be resolved. |network_config| 123 // encoding. Returns true if all references could be resolved. |network_config|
124 // must be a ONC NetworkConfiguration. 124 // must be a ONC NetworkConfiguration.
125 CHROMEOS_EXPORT bool ResolveServerCertRefsInNetwork( 125 CHROMEOS_EXPORT bool ResolveServerCertRefsInNetwork(
126 const CertPEMsByGUIDMap& certs_by_guid, 126 const CertPEMsByGUIDMap& certs_by_guid,
127 base::DictionaryValue* network_config); 127 base::DictionaryValue* network_config);
128 128
129 // Returns a network type pattern for matching the ONC type string. 129 // Returns a network type pattern for matching the ONC type string.
130 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType( 130 CHROMEOS_EXPORT NetworkTypePattern NetworkTypePatternFromOncType(
131 const std::string& type); 131 const std::string& type);
132 132
133 // Returns true if |property_key| is a recommended value in the ONC dictionary.
pneubeck (no reviews) 2014/08/04 10:14:30 This should also mention that |property_key| is ac
134 CHROMEOS_EXPORT bool IsRecommendedValue(const base::DictionaryValue* onc,
135 const std::string& property_key);
136
133 } // namespace onc 137 } // namespace onc
134 } // namespace chromeos 138 } // namespace chromeos
135 139
136 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_ 140 #endif // CHROMEOS_NETWORK_ONC_ONC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698