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" | 8 #include "base/basictypes.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/location.h" |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/message_loop/message_loop_proxy.h" | 16 #include "base/message_loop/message_loop_proxy.h" |
16 | 17 |
17 namespace base { | 18 namespace base { |
18 | 19 |
19 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
20 | 21 |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 const scoped_refptr<base::SingleThreadTaskRunner> construction_runner_; | 127 const scoped_refptr<base::SingleThreadTaskRunner> construction_runner_; |
127 T* const self_deleting_object_; | 128 T* const self_deleting_object_; |
128 const DeletionCallback deletion_callback_; | 129 const DeletionCallback deletion_callback_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(SelfDeleterHelper); | 131 DISALLOW_COPY_AND_ASSIGN(SelfDeleterHelper); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace forwarder2 | 134 } // namespace forwarder2 |
134 | 135 |
135 #endif // TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ | 136 #endif // TOOLS_ANDROID_FORWARDER2_SELF_DELETER_HELPER_H_ |
OLD | NEW |