summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorsimon.hong81@gmail.com <simon.hong81@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 09:51:31 +0000
committersimon.hong81@gmail.com <simon.hong81@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-20 09:51:31 +0000
commitebbccb958d7979daaaac0230e6d4e785829be173 (patch)
treee95d888f26a8a649c773fc16bbbc8d5e0adf0463 /base
parentc149b9198168ca08da0a30d4fb63f0eb232d6001 (diff)
downloadchromium_src-ebbccb958d7979daaaac0230e6d4e785829be173.zip
chromium_src-ebbccb958d7979daaaac0230e6d4e785829be173.tar.gz
chromium_src-ebbccb958d7979daaaac0230e6d4e785829be173.tar.bz2
Move RefCountedBytes Class to base namespace.
BUG=none TEST=compiles and tests pass on trybots Review URL: http://codereview.chromium.org/10083022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/memory/ref_counted_memory.cc6
-rw-r--r--base/memory/ref_counted_memory.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/base/memory/ref_counted_memory.cc b/base/memory/ref_counted_memory.cc
index 7e034f9..a90d5c9 100644
--- a/base/memory/ref_counted_memory.cc
+++ b/base/memory/ref_counted_memory.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,6 +20,8 @@ size_t RefCountedStaticMemory::size() const {
return length_;
}
+namespace base {
+
RefCountedBytes::RefCountedBytes() {
}
@@ -47,8 +49,6 @@ size_t RefCountedBytes::size() const {
RefCountedBytes::~RefCountedBytes() {
}
-namespace base {
-
RefCountedString::RefCountedString() {}
RefCountedString::~RefCountedString() {}
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h
index 7b55d14..6e6a407 100644
--- a/base/memory/ref_counted_memory.h
+++ b/base/memory/ref_counted_memory.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -55,6 +55,8 @@ class BASE_EXPORT RefCountedStaticMemory : public RefCountedMemory {
DISALLOW_COPY_AND_ASSIGN(RefCountedStaticMemory);
};
+namespace base {
+
// An implementation of RefCountedMemory, where we own our the data in a
// vector.
class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
@@ -85,8 +87,6 @@ class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
DISALLOW_COPY_AND_ASSIGN(RefCountedBytes);
};
-namespace base {
-
// An implementation of RefCountedMemory, where the bytes are stored in an STL
// string. Use this if your data naturally arrives in that format.
class BASE_EXPORT RefCountedString : public RefCountedMemory {