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

Unified Diff: mojo/edk/util/ref_counted.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/BUILD.gn ('k') | mojo/edk/util/ref_counted_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/util/ref_counted.h
diff --git a/mojo/edk/system/ref_counted.h b/mojo/edk/util/ref_counted.h
similarity index 90%
rename from mojo/edk/system/ref_counted.h
rename to mojo/edk/util/ref_counted.h
index 8c9a16c047af40d097e0cb7edd749261cd2f12d6..37c71111ec15df7b12218036d802b8ed679bedb4 100644
--- a/mojo/edk/system/ref_counted.h
+++ b/mojo/edk/util/ref_counted.h
@@ -4,20 +4,20 @@
// Provides a base class for reference-counted classes.
-#ifndef MOJO_EDK_SYSTEM_REF_COUNTED_H_
-#define MOJO_EDK_SYSTEM_REF_COUNTED_H_
+#ifndef MOJO_EDK_UTIL_REF_COUNTED_H_
+#define MOJO_EDK_UTIL_REF_COUNTED_H_
#include <assert.h>
#include <cstddef>
#include <utility>
-#include "mojo/edk/system/ref_counted_internal.h"
-#include "mojo/edk/system/ref_ptr.h"
+#include "mojo/edk/util/ref_counted_internal.h"
+#include "mojo/edk/util/ref_ptr.h"
#include "mojo/public/cpp/system/macros.h"
namespace mojo {
-namespace system {
+namespace util {
// A base class for (thread-safe) reference-counted classes. Use like:
//
@@ -109,15 +109,15 @@ class RefCountedThreadSafe : public internal::RefCountedThreadSafeBase {
// If you subclass |RefCountedThreadSafe| and want to keep your destructor
// private, use this. (See the example above |RefCountedThreadSafe|.)
#define FRIEND_REF_COUNTED_THREAD_SAFE(T) \
- friend class ::mojo::system::RefCountedThreadSafe<T>
+ friend class ::mojo::util::RefCountedThreadSafe<T>
// If you want to keep your constructor(s) private and still want to use
// |MakeRefCounted<T>()|, use this. (See the example above
// |RefCountedThreadSafe|.)
#define FRIEND_MAKE_REF_COUNTED(T) \
- friend class ::mojo::system::internal::MakeRefCountedHelper<T>
+ friend class ::mojo::util::internal::MakeRefCountedHelper<T>
-} // namespace system
+} // namespace util
} // namespace mojo
-#endif // MOJO_EDK_SYSTEM_REF_COUNTED_H_
+#endif // MOJO_EDK_UTIL_REF_COUNTED_H_
« no previous file with comments | « mojo/edk/util/BUILD.gn ('k') | mojo/edk/util/ref_counted_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698