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

Side by Side Diff: base/values.h

Issue 10944009: Implementation of ONC signature, validator and normalizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gperffix
Patch Set: Addressed remaining nits. Created 8 years, 1 month 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 | « no previous file | base/values.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 (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 // This file specifies a recursive data storage class called Value intended for 5 // This file specifies a recursive data storage class called Value intended for
6 // storing setting and other persistable data. It includes the ability to 6 // storing setting and other persistable data. It includes the ability to
7 // specify (recursive) lists and dictionaries, so it's fairly expressive. 7 // specify (recursive) lists and dictionaries, so it's fairly expressive.
8 // However, the API is optimized for the common case, namely storing a 8 // However, the API is optimized for the common case, namely storing a
9 // hierarchical tree of simple values. Given a DictionaryValue root, you can 9 // hierarchical tree of simple values. Given a DictionaryValue root, you can
10 // easily do things like: 10 // easily do things like:
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 const DictionaryValue** out_value) const; 290 const DictionaryValue** out_value) const;
291 bool GetDictionary(const std::string& path, DictionaryValue** out_value); 291 bool GetDictionary(const std::string& path, DictionaryValue** out_value);
292 bool GetList(const std::string& path, const ListValue** out_value) const; 292 bool GetList(const std::string& path, const ListValue** out_value) const;
293 bool GetList(const std::string& path, ListValue** out_value); 293 bool GetList(const std::string& path, ListValue** out_value);
294 294
295 // Like Get(), but without special treatment of '.'. This allows e.g. URLs to 295 // Like Get(), but without special treatment of '.'. This allows e.g. URLs to
296 // be used as paths. 296 // be used as paths.
297 bool GetWithoutPathExpansion(const std::string& key, 297 bool GetWithoutPathExpansion(const std::string& key,
298 const Value** out_value) const; 298 const Value** out_value) const;
299 bool GetWithoutPathExpansion(const std::string& key, Value** out_value); 299 bool GetWithoutPathExpansion(const std::string& key, Value** out_value);
300 bool GetBooleanWithoutPathExpansion(const std::string& key,
301 bool* out_value) const;
300 bool GetIntegerWithoutPathExpansion(const std::string& key, 302 bool GetIntegerWithoutPathExpansion(const std::string& key,
301 int* out_value) const; 303 int* out_value) const;
302 bool GetDoubleWithoutPathExpansion(const std::string& key, 304 bool GetDoubleWithoutPathExpansion(const std::string& key,
303 double* out_value) const; 305 double* out_value) const;
304 bool GetStringWithoutPathExpansion(const std::string& key, 306 bool GetStringWithoutPathExpansion(const std::string& key,
305 std::string* out_value) const; 307 std::string* out_value) const;
306 bool GetStringWithoutPathExpansion(const std::string& key, 308 bool GetStringWithoutPathExpansion(const std::string& key,
307 string16* out_value) const; 309 string16* out_value) const;
308 bool GetDictionaryWithoutPathExpansion( 310 bool GetDictionaryWithoutPathExpansion(
309 const std::string& key, 311 const std::string& key,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 530
529 } // namespace base 531 } // namespace base
530 532
531 // http://crbug.com/88666 533 // http://crbug.com/88666
532 using base::DictionaryValue; 534 using base::DictionaryValue;
533 using base::ListValue; 535 using base::ListValue;
534 using base::StringValue; 536 using base::StringValue;
535 using base::Value; 537 using base::Value;
536 538
537 #endif // BASE_VALUES_H_ 539 #endif // BASE_VALUES_H_
OLDNEW
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698