summaryrefslogtreecommitdiffstats
path: root/base/memory
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 23:48:44 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 23:48:44 +0000
commit9493ee95cd8475d2ce39276fddca3b4b3d3ae73e (patch)
treec9888c464ba0261f5daf7caaa6534c5510a12289 /base/memory
parent34ca58555bb67f8f72b84ba07b5c935928e2db3d (diff)
downloadchromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.zip
chromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.tar.gz
chromium_src-9493ee95cd8475d2ce39276fddca3b4b3d3ae73e.tar.bz2
Base: Last set of files to use BASE_API (for base.dll)
Note that a bunck of these files have no unit tests :( BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6747014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79633 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory')
-rw-r--r--base/memory/memory_debug.h3
-rw-r--r--base/memory/ref_counted_memory.h8
2 files changed, 7 insertions, 4 deletions
diff --git a/base/memory/memory_debug.h b/base/memory/memory_debug.h
index 9cc6c61..d094edb 100644
--- a/base/memory/memory_debug.h
+++ b/base/memory/memory_debug.h
@@ -10,11 +10,12 @@
#define BASE_MEMORY_MEMORY_DEBUG_H_
#pragma once
+#include "base/base_api.h"
#include "base/basictypes.h"
namespace base {
-class MemoryDebug {
+class BASE_API MemoryDebug {
public:
// Since MIU messages are a lot of data, and we don't always want this data,
// we have a global switch. If disabled, *MemoryInUse are no-ops.
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h
index db15792..1a0f51ee 100644
--- a/base/memory/ref_counted_memory.h
+++ b/base/memory/ref_counted_memory.h
@@ -8,6 +8,7 @@
#include <vector>
+#include "base/base_api.h"
#include "base/memory/ref_counted.h"
// TODO(erg): The contents of this file should be in a namespace. This would
@@ -16,7 +17,8 @@
// A generic interface to memory. This object is reference counted because one
// of its two subclasses own the data they carry, and we need to have
// heterogeneous containers of these two types of memory.
-class RefCountedMemory : public base::RefCountedThreadSafe<RefCountedMemory> {
+class BASE_API RefCountedMemory
+ : public base::RefCountedThreadSafe<RefCountedMemory> {
public:
// Retrieves a pointer to the beginning of the data we point to. If the data
// is empty, this will return NULL.
@@ -33,7 +35,7 @@ class RefCountedMemory : public base::RefCountedThreadSafe<RefCountedMemory> {
// An implementation of RefCountedMemory, where the ref counting does not
// matter.
-class RefCountedStaticMemory : public RefCountedMemory {
+class BASE_API RefCountedStaticMemory : public RefCountedMemory {
public:
RefCountedStaticMemory()
: data_(NULL), length_(0) {}
@@ -53,7 +55,7 @@ class RefCountedStaticMemory : public RefCountedMemory {
// An implementation of RefCountedMemory, where we own our the data in a
// vector.
-class RefCountedBytes : public RefCountedMemory {
+class BASE_API RefCountedBytes : public RefCountedMemory {
public:
RefCountedBytes();