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

Unified Diff: mojo/edk/util/ref_ptr.h

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « mojo/edk/util/ref_counted_unittest.cc ('k') | mojo/edk/util/ref_ptr_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/util/ref_ptr.h
diff --git a/mojo/edk/system/ref_ptr.h b/mojo/edk/util/ref_ptr.h
similarity index 97%
rename from mojo/edk/system/ref_ptr.h
rename to mojo/edk/util/ref_ptr.h
index 493aa98be9057f22b771f8980e73e214c98dbf67..9d8bf851e9d5b9b2879f29b3e0e34d79ae8fb9a9 100644
--- a/mojo/edk/system/ref_ptr.h
+++ b/mojo/edk/util/ref_ptr.h
@@ -4,19 +4,19 @@
// Provides a smart pointer class for intrusively reference-counted objects.
-#ifndef MOJO_EDK_SYSTEM_REF_PTR_H_
-#define MOJO_EDK_SYSTEM_REF_PTR_H_
+#ifndef MOJO_EDK_UTIL_REF_PTR_H_
+#define MOJO_EDK_UTIL_REF_PTR_H_
#include <assert.h>
#include <cstddef>
#include <utility>
-#include "mojo/edk/system/ref_ptr_internal.h"
+#include "mojo/edk/util/ref_ptr_internal.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
-namespace system {
+namespace util {
// A smart pointer class for intrusively reference-counted objects (e.g., those
// subclassing |RefCountedThreadSafe| -- see ref_counted.h).
@@ -227,7 +227,7 @@ RefPtr<T> MakeRefCounted(Args&&... args) {
std::forward<Args>(args)...);
}
-} // namespace system
+} // namespace util
} // namespace mojo
-#endif // MOJO_EDK_SYSTEM_REF_PTR_H_
+#endif // MOJO_EDK_UTIL_REF_PTR_H_
« no previous file with comments | « mojo/edk/util/ref_counted_unittest.cc ('k') | mojo/edk/util/ref_ptr_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698