OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 // error_code will be set with the underlying error. | 458 // error_code will be set with the underlying error. |
459 // If |error_message| is non-null, it will be filled in with a formatted | 459 // If |error_message| is non-null, it will be filled in with a formatted |
460 // error message including the location of the error if appropriate. | 460 // error message including the location of the error if appropriate. |
461 virtual Value* Deserialize(int* error_code, std::string* error_str) = 0; | 461 virtual Value* Deserialize(int* error_code, std::string* error_str) = 0; |
462 }; | 462 }; |
463 | 463 |
464 } // namespace base | 464 } // namespace base |
465 | 465 |
466 // http://crbug.com/88666 | 466 // http://crbug.com/88666 |
467 using base::DictionaryValue; | 467 using base::DictionaryValue; |
468 using base::FundamentalValue; | |
469 using base::ListValue; | 468 using base::ListValue; |
470 using base::StringValue; | 469 using base::StringValue; |
471 using base::Value; | 470 using base::Value; |
472 | 471 |
473 #endif // BASE_VALUES_H_ | 472 #endif // BASE_VALUES_H_ |
OLD | NEW |