| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BASE_MEMORY_REF_COUNTED_H_ | 5 #ifndef BASE_MEMORY_REF_COUNTED_H_ |
| 6 #define BASE_MEMORY_REF_COUNTED_H_ | 6 #define BASE_MEMORY_REF_COUNTED_H_ |
| 7 | 7 |
| 8 #include <cassert> | 8 #include <cassert> |
| 9 #include <iosfwd> | 9 #include <iosfwd> |
| 10 | 10 |
| 11 #include "base/atomic_ref_count.h" | 11 #include "base/atomic_ref_count.h" |
| 12 #include "base/base_export.h" | 12 #include "base/base_export.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" |
| 14 #ifndef NDEBUG | 15 #ifndef NDEBUG |
| 15 #include "base/logging.h" | 16 #include "base/logging.h" |
| 16 #endif | 17 #endif |
| 17 #include "base/threading/thread_collision_warner.h" | 18 #include "base/threading/thread_collision_warner.h" |
| 18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 | 22 |
| 22 namespace subtle { | 23 namespace subtle { |
| 23 | 24 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 bool operator!=(const T* lhs, const scoped_refptr<U>& rhs) { | 437 bool operator!=(const T* lhs, const scoped_refptr<U>& rhs) { |
| 437 return !operator==(lhs, rhs); | 438 return !operator==(lhs, rhs); |
| 438 } | 439 } |
| 439 | 440 |
| 440 template <typename T> | 441 template <typename T> |
| 441 std::ostream& operator<<(std::ostream& out, const scoped_refptr<T>& p) { | 442 std::ostream& operator<<(std::ostream& out, const scoped_refptr<T>& p) { |
| 442 return out << p.get(); | 443 return out << p.get(); |
| 443 } | 444 } |
| 444 | 445 |
| 445 #endif // BASE_MEMORY_REF_COUNTED_H_ | 446 #endif // BASE_MEMORY_REF_COUNTED_H_ |
| OLD | NEW |