| 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 */ | |
| 5 | 4 |
| 6 #ifndef LIBRARIES_SDK_UTIL_REF_OBJECT | 5 #ifndef LIBRARIES_SDK_UTIL_REF_OBJECT |
| 7 #define LIBRARIES_SDK_UTIL_REF_OBJECT | 6 #define LIBRARIES_SDK_UTIL_REF_OBJECT |
| 8 | 7 |
| 9 #include <stdlib.h> | 8 #include <stdlib.h> |
| 10 #include "pthread.h" | 9 #include "pthread.h" |
| 11 | 10 |
| 12 #include "sdk_util/atomicops.h" | 11 #include "sdk_util/atomicops.h" |
| 13 | 12 |
| 14 class ScopedRefBase; | 13 class ScopedRefBase; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 61 } |
| 63 | 62 |
| 64 private: | 63 private: |
| 65 Atomic32 ref_count_; | 64 Atomic32 ref_count_; |
| 66 | 65 |
| 67 friend class ScopedRefBase; | 66 friend class ScopedRefBase; |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 #endif // LIBRARIES_SDK_UTIL_REF_OBJECT | 69 #endif // LIBRARIES_SDK_UTIL_REF_OBJECT |
| 71 | 70 |
| OLD | NEW |