Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: base/property_bag.cc

Issue 8652002: Move PropertyBag to base. Originally this was in chrome\common because only chrome used it. Now t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: move to base namespace and forward declare where possible Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/property_bag.h ('k') | base/property_bag_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « base/property_bag.h ('k') | base/property_bag_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698