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

Unified Diff: base/memory/ref_counted.h

Issue 6714032: Move some files in base to base/memory. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: only base Created 9 years, 9 months 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
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_

Powered by Google App Engine
This is Rietveld 408576698