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 | 4 |
5 #ifndef TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ | 5 #ifndef TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ |
6 #define TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ | 6 #define TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
| 11 #include "base/macros.h" |
12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.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 "tools/android/forwarder2/socket.h" | 16 #include "tools/android/forwarder2/socket.h" |
17 | 17 |
18 namespace base { | 18 namespace base { |
19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
20 } // namespace base | 20 } // namespace base |
21 | 21 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // that any WeakPtrs to Controller are invalidated before its members | 62 // that any WeakPtrs to Controller are invalidated before its members |
63 // variable's destructors are executed, rendering them invalid. | 63 // variable's destructors are executed, rendering them invalid. |
64 base::WeakPtrFactory<DeviceController> weak_ptr_factory_; | 64 base::WeakPtrFactory<DeviceController> weak_ptr_factory_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(DeviceController); | 66 DISALLOW_COPY_AND_ASSIGN(DeviceController); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace forwarder | 69 } // namespace forwarder |
70 | 70 |
71 #endif // TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ | 71 #endif // TOOLS_ANDROID_FORWARDER2_DEVICE_CONTROLLER_H_ |
OLD | NEW |