| Index: base/memory/ref_counted.h
|
| diff --git a/base/ref_counted.h b/base/memory/ref_counted.h
|
| similarity index 96%
|
| rename from base/ref_counted.h
|
| rename to base/memory/ref_counted.h
|
| index a6ebfb734fb169c42f8fa160602fa28e50443743..b8b28e1a42bae18ba2f575a68ebccd8abd72b9df 100644
|
| --- a/base/ref_counted.h
|
| +++ b/base/memory/ref_counted.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef BASE_REF_COUNTED_H_
|
| -#define BASE_REF_COUNTED_H_
|
| +#ifndef BASE_MEMORY_REF_COUNTED_H_
|
| +#define BASE_MEMORY_REF_COUNTED_H_
|
| #pragma once
|
|
|
| #include "base/atomic_ref_count.h"
|
| @@ -156,7 +156,7 @@ class RefCountedThreadSafe : public subtle::RefCountedThreadSafeBase {
|
| // scoped_refptrs<>.
|
| //
|
| template<typename T>
|
| -class RefCountedData : public base::RefCounted< base::RefCountedData<T> > {
|
| +class RefCountedData : public RefCounted< RefCountedData<T> > {
|
| public:
|
| RefCountedData() : data() {}
|
| RefCountedData(const T& in_value) : data(in_value) {}
|
| @@ -172,7 +172,7 @@ class RefCountedData : public base::RefCounted< base::RefCountedData<T> > {
|
| // avoid common memory leaks caused by forgetting to Release an object
|
| // reference. Sample usage:
|
| //
|
| -// class MyFoo : public RefCounted<MyFoo> {
|
| +// class MyFoo : public base::RefCounted<MyFoo> {
|
| // ...
|
| // };
|
| //
|
| @@ -296,4 +296,4 @@ scoped_refptr<T> make_scoped_refptr(T* t) {
|
| return scoped_refptr<T>(t);
|
| }
|
|
|
| -#endif // BASE_REF_COUNTED_H_
|
| +#endif // BASE_MEMORY_REF_COUNTED_H_
|
|
|