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/property_bag.h" |
| 6 |
5 #include "base/memory/linked_ptr.h" | 7 #include "base/memory/linked_ptr.h" |
6 #include "content/common/property_bag.h" | 8 |
| 9 namespace base { |
7 | 10 |
8 PropertyBag::PropertyBag() { | 11 PropertyBag::PropertyBag() { |
9 } | 12 } |
10 | 13 |
11 PropertyBag::PropertyBag(const PropertyBag& other) { | 14 PropertyBag::PropertyBag(const PropertyBag& other) { |
12 operator=(other); | 15 operator=(other); |
13 } | 16 } |
14 | 17 |
15 PropertyBag::~PropertyBag() { | 18 PropertyBag::~PropertyBag() { |
16 } | 19 } |
(...skipping 30 matching lines...) Expand all Loading... |
47 PropertyMap::iterator found = props_.find(id); | 50 PropertyMap::iterator found = props_.find(id); |
48 if (found == props_.end()) | 51 if (found == props_.end()) |
49 return; // Not found, nothing to do. | 52 return; // Not found, nothing to do. |
50 props_.erase(found); | 53 props_.erase(found); |
51 } | 54 } |
52 | 55 |
53 PropertyAccessorBase::PropertyAccessorBase() { | 56 PropertyAccessorBase::PropertyAccessorBase() { |
54 static PropertyBag::PropID next_id = 1; | 57 static PropertyBag::PropID next_id = 1; |
55 prop_id_ = next_id++; | 58 prop_id_ = next_id++; |
56 } | 59 } |
| 60 |
| 61 } // namespace base |
OLD | NEW |