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

Unified Diff: base/property_bag.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base.gypi ('k') | base/property_bag.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/property_bag.h
===================================================================
--- base/property_bag.h (revision 111170)
+++ base/property_bag.h (working copy)
@@ -2,17 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_COMMON_PROPERTY_BAG_H_
-#define CONTENT_COMMON_PROPERTY_BAG_H_
+#ifndef BASE_PROPERTY_BAG_H_
+#define BASE_PROPERTY_BAG_H_
#pragma once
#include <map>
#include "base/basictypes.h"
-#include "content/common/content_export.h"
+#include "base/base_export.h"
-template <typename T>
-class linked_ptr;
+template <typename T> class linked_ptr;
+
+namespace base {
+
class PropertyAccessorBase;
// A property bag holds a generalized list of arbitrary metadata called
@@ -43,7 +45,7 @@
//
// accessor->SetProperty(object, 22);
// }
-class CONTENT_EXPORT PropertyBag {
+class BASE_EXPORT PropertyBag {
public:
// The type that uniquely identifies a property type.
typedef int PropID;
@@ -94,7 +96,7 @@
// Manages getting the unique IDs to identify a property. Callers should use
// PropertyAccessor below instead.
-class CONTENT_EXPORT PropertyAccessorBase {
+class BASE_EXPORT PropertyAccessorBase {
public:
PropertyAccessorBase();
virtual ~PropertyAccessorBase() {}
@@ -173,4 +175,6 @@
DISALLOW_COPY_AND_ASSIGN(PropertyAccessor);
};
-#endif // CONTENT_COMMON_PROPERTY_BAG_H_
+} // namespace base
+
+#endif // BASE_PROPERTY_BAG_H_
« no previous file with comments | « base/base.gypi ('k') | base/property_bag.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698