Index: base/allocator/new_delete_type.h |
diff --git a/base/allocator/new_delete_type.h b/base/allocator/new_delete_type.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8a4b982f97239b89fb2ae91e6b4c2cd52b50b795 |
--- /dev/null |
+++ b/base/allocator/new_delete_type.h |
@@ -0,0 +1,16 @@ |
+// Copyright (c) 2012 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 BASE_ALLOCATOR_NEW_DELETE_OVERLOAD_H_ |
+#define BASE_ALLOCATOR_NEW_DELETE_OVERLOAD_H_ |
+ |
+#include <cstddef> |
+#include <typeinfo> |
+ |
+void* operator new(size_t, const std::type_info&); |
+void operator delete(void*, const std::type_info &); |
+void* operator new[](size_t, const std::type_info&); |
+void operator delete[](void*, const std::type_info &); |
+ |
+#endif // BASE_ALLOCATOR_NEW_DELETE_OVERLOAD_H_ |