Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: tools/android/forwarder2/self_deleter_helper.h

Issue 60033002: Make HostController/DeviceListener deletion fully synchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/android/forwarder2/host_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « tools/android/forwarder2/host_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698