summaryrefslogtreecommitdiffstats
path: root/base/ref_counted_memory.cc
diff options
context:
space:
mode:
authorlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 01:54:15 +0000
committerlevin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 01:54:15 +0000
commit3b63f8f451afcf414a59c529f627c620e4d449d9 (patch)
tree2dcbab1c060b29a260c29bb19b67bf97a8293ca3 /base/ref_counted_memory.cc
parent9174a108509c2aafe513da68e6e63fbc7df38c85 (diff)
downloadchromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.zip
chromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.tar.gz
chromium_src-3b63f8f451afcf414a59c529f627c620e4d449d9.tar.bz2
Move some files from base to base/memory.
raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/ref_counted_memory.cc')
-rw-r--r--base/ref_counted_memory.cc46
1 files changed, 0 insertions, 46 deletions
diff --git a/base/ref_counted_memory.cc b/base/ref_counted_memory.cc
deleted file mode 100644
index dc244b9..0000000
--- a/base/ref_counted_memory.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2010 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.
-
-#include "base/ref_counted_memory.h"
-
-RefCountedMemory::RefCountedMemory() {
-}
-
-RefCountedMemory::~RefCountedMemory() {
-}
-
-const unsigned char* RefCountedStaticMemory::front() const {
- return data_;
-}
-
-size_t RefCountedStaticMemory::size() const {
- return length_;
-}
-
-RefCountedBytes::RefCountedBytes() {
-}
-
-RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer)
- : data(initializer) {
-}
-
-RefCountedBytes* RefCountedBytes::TakeVector(
- std::vector<unsigned char>* to_destroy) {
- RefCountedBytes* bytes = new RefCountedBytes;
- bytes->data.swap(*to_destroy);
- return bytes;
-}
-
-const unsigned char* RefCountedBytes::front() const {
- // STL will assert if we do front() on an empty vector, but calling code
- // expects a NULL.
- return size() ? &data.front() : NULL;
-}
-
-size_t RefCountedBytes::size() const {
- return data.size();
-}
-
-RefCountedBytes::~RefCountedBytes() {
-}