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 #include "base/values.h" | 5 #include "base/values.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 } | 52 } |
53 | 53 |
54 default: | 54 default: |
55 // For everything else, just make a copy. | 55 // For everything else, just make a copy. |
56 return node->DeepCopy(); | 56 return node->DeepCopy(); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 } // namespace | 60 } // namespace |
61 | 61 |
| 62 namespace base { |
| 63 |
62 ///////////////////// Value //////////////////// | 64 ///////////////////// Value //////////////////// |
63 | 65 |
64 Value::~Value() { | 66 Value::~Value() { |
65 } | 67 } |
66 | 68 |
67 // static | 69 // static |
68 Value* Value::CreateNullValue() { | 70 Value* Value::CreateNullValue() { |
69 return new Value(TYPE_NULL); | 71 return new Value(TYPE_NULL); |
70 } | 72 } |
71 | 73 |
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 return false; | 901 return false; |
900 } | 902 } |
901 if (lhs_it != end() || rhs_it != other_list->end()) | 903 if (lhs_it != end() || rhs_it != other_list->end()) |
902 return false; | 904 return false; |
903 | 905 |
904 return true; | 906 return true; |
905 } | 907 } |
906 | 908 |
907 ValueSerializer::~ValueSerializer() { | 909 ValueSerializer::~ValueSerializer() { |
908 } | 910 } |
| 911 |
| 912 } // namespace base |
OLD | NEW |