| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/linked_ptr.h" |
| 5 #include "chrome/common/property_bag.h" | 6 #include "chrome/common/property_bag.h" |
| 6 | 7 |
| 7 PropertyBag::PropertyBag() { | 8 PropertyBag::PropertyBag() { |
| 8 } | 9 } |
| 9 | 10 |
| 10 PropertyBag::PropertyBag(const PropertyBag& other) { | 11 PropertyBag::PropertyBag(const PropertyBag& other) { |
| 11 operator=(other); | 12 operator=(other); |
| 12 } | 13 } |
| 13 | 14 |
| 14 PropertyBag::~PropertyBag() { | 15 PropertyBag::~PropertyBag() { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 PropertyMap::iterator found = props_.find(id); | 47 PropertyMap::iterator found = props_.find(id); |
| 47 if (found == props_.end()) | 48 if (found == props_.end()) |
| 48 return; // Not found, nothing to do. | 49 return; // Not found, nothing to do. |
| 49 props_.erase(found); | 50 props_.erase(found); |
| 50 } | 51 } |
| 51 | 52 |
| 52 PropertyAccessorBase::PropertyAccessorBase() { | 53 PropertyAccessorBase::PropertyAccessorBase() { |
| 53 static PropertyBag::PropID next_id = 1; | 54 static PropertyBag::PropID next_id = 1; |
| 54 prop_id_ = next_id++; | 55 prop_id_ = next_id++; |
| 55 } | 56 } |
| OLD | NEW |