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

Unified Diff: mojo/edk/system/ref_ptr_internal.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/system/ref_ptr.h ('k') | mojo/edk/system/remote_consumer_data_pipe_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/ref_ptr_internal.h
diff --git a/mojo/edk/system/ref_ptr_internal.h b/mojo/edk/system/ref_ptr_internal.h
deleted file mode 100644
index 8684694baa8eb4977b92cdb98291197978a9fca0..0000000000000000000000000000000000000000
--- a/mojo/edk/system/ref_ptr_internal.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2015 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.
-
-#ifndef MOJO_EDK_SYSTEM_REF_PTR_INTERNAL_H_
-#define MOJO_EDK_SYSTEM_REF_PTR_INTERNAL_H_
-
-#include <utility>
-
-#include "mojo/public/cpp/system/macros.h"
-
-namespace mojo {
-namespace system {
-
-template <typename T>
-class RefPtr;
-
-template <typename T>
-RefPtr<T> AdoptRef(T* ptr);
-
-namespace internal {
-
-// This is a wrapper class that can be friended for a particular |T|, if you
-// want to make |T|'s constructor private, but still use |MakeRefCounted()|
-// (below). (You can't friend partial specializations.) See |MakeRefCounted()|
-// and |FRIEND_MAKE_REF_COUNTED()|.
-template <typename T>
-class MakeRefCountedHelper {
- public:
- template <typename... Args>
- static RefPtr<T> MakeRefCounted(Args&&... args) {
- return AdoptRef<T>(new T(std::forward<Args>(args)...));
- }
-};
-
-} // namespace internal
-} // namespace system
-} // namespace mojo
-
-#endif // MOJO_EDK_SYSTEM_REF_PTR_INTERNAL_H_
« no previous file with comments | « mojo/edk/system/ref_ptr.h ('k') | mojo/edk/system/remote_consumer_data_pipe_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698