OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ | 5 #ifndef TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ |
6 #define TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ | 6 #define TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/bind.h" | 8 #include "base/bind.h" |
10 #include "base/callback.h" | 9 #include "base/callback.h" |
11 #include "base/location.h" | 10 #include "base/location.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 | 19 |
20 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
21 | 21 |
22 } // namespace base | 22 } // namespace base |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // that any WeakPtrs to Controller are invalidated before its members | 131 // that any WeakPtrs to Controller are invalidated before its members |
132 // variable's destructors are executed, rendering them invalid. | 132 // variable's destructors are executed, rendering them invalid. |
133 base::WeakPtrFactory<SelfDeleterHelper<T> > weak_ptr_factory_; | 133 base::WeakPtrFactory<SelfDeleterHelper<T> > weak_ptr_factory_; |
134 | 134 |
135 DISALLOW_COPY_AND_ASSIGN(SelfDeleterHelper); | 135 DISALLOW_COPY_AND_ASSIGN(SelfDeleterHelper); |
136 }; | 136 }; |
137 | 137 |
138 } // namespace forwarder2 | 138 } // namespace forwarder2 |
139 | 139 |
140 #endif // TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ | 140 #endif // TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ |
OLD | NEW |