OLD | NEW |
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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include <iterator> | 24 #include <iterator> |
25 #include <map> | 25 #include <map> |
26 #include <string> | 26 #include <string> |
27 #include <vector> | 27 #include <vector> |
28 | 28 |
29 #include "base/base_export.h" | 29 #include "base/base_export.h" |
30 #include "base/basictypes.h" | 30 #include "base/basictypes.h" |
31 #include "base/compiler_specific.h" | 31 #include "base/compiler_specific.h" |
32 #include "base/memory/scoped_ptr.h" | 32 #include "base/memory/scoped_ptr.h" |
33 #include "base/string16.h" | 33 #include "base/strings/string16.h" |
34 | 34 |
35 // This file declares "using base::Value", etc. at the bottom, so that | 35 // This file declares "using base::Value", etc. at the bottom, so that |
36 // current code can use these classes without the base namespace. In | 36 // current code can use these classes without the base namespace. In |
37 // new code, please always use base::Value, etc. or add your own | 37 // new code, please always use base::Value, etc. or add your own |
38 // "using" declaration. | 38 // "using" declaration. |
39 // http://crbug.com/88666 | 39 // http://crbug.com/88666 |
40 namespace base { | 40 namespace base { |
41 | 41 |
42 class BinaryValue; | 42 class BinaryValue; |
43 class DictionaryValue; | 43 class DictionaryValue; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 } // namespace base | 521 } // namespace base |
522 | 522 |
523 // http://crbug.com/88666 | 523 // http://crbug.com/88666 |
524 using base::DictionaryValue; | 524 using base::DictionaryValue; |
525 using base::ListValue; | 525 using base::ListValue; |
526 using base::StringValue; | 526 using base::StringValue; |
527 using base::Value; | 527 using base::Value; |
528 | 528 |
529 #endif // BASE_VALUES_H_ | 529 #endif // BASE_VALUES_H_ |
OLD | NEW |