OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ |
6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
12 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
13 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
15 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
16 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
17 | 18 |
18 namespace net { | 19 namespace net { |
19 class StreamSocket; | 20 class StreamSocket; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 typedef std::map<std::string, base::WeakPtr<Device> > DeviceWeakMap; | 239 typedef std::map<std::string, base::WeakPtr<Device> > DeviceWeakMap; |
239 | 240 |
240 scoped_refptr<HandlerThread> handler_thread_; | 241 scoped_refptr<HandlerThread> handler_thread_; |
241 DeviceProviders providers_; | 242 DeviceProviders providers_; |
242 DeviceWeakMap devices_; | 243 DeviceWeakMap devices_; |
243 | 244 |
244 base::WeakPtrFactory<AndroidDeviceManager> weak_factory_; | 245 base::WeakPtrFactory<AndroidDeviceManager> weak_factory_; |
245 }; | 246 }; |
246 | 247 |
247 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ | 248 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ |
OLD | NEW |