| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include <stdbool.h> |
| 6 #include <stddef.h> |
| 7 |
| 8 #include "base/logging.h" |
| 9 #include "base/ref_counted.h" |
| 5 #include "base/weak_ptr.h" | 10 #include "base/weak_ptr.h" |
| 6 | 11 |
| 7 namespace base { | 12 namespace base { |
| 8 namespace internal { | 13 namespace internal { |
| 9 | 14 |
| 10 WeakReference::Flag::Flag(Flag** handle) : handle_(handle) { | 15 WeakReference::Flag::Flag(Flag** handle) : handle_(handle) { |
| 11 } | 16 } |
| 12 | 17 |
| 13 WeakReference::Flag::~Flag() { | 18 WeakReference::Flag::~Flag() { |
| 14 if (handle_) | 19 if (handle_) |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } | 67 } |
| 63 | 68 |
| 64 WeakPtrBase::~WeakPtrBase() { | 69 WeakPtrBase::~WeakPtrBase() { |
| 65 } | 70 } |
| 66 | 71 |
| 67 WeakPtrBase::WeakPtrBase(const WeakReference& ref) : ref_(ref) { | 72 WeakPtrBase::WeakPtrBase(const WeakReference& ref) : ref_(ref) { |
| 68 } | 73 } |
| 69 | 74 |
| 70 } // namespace internal | 75 } // namespace internal |
| 71 } // namespace base | 76 } // namespace base |
| OLD | NEW |