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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
16 | 16 |
17 namespace net { | 17 namespace net { |
18 class StreamSocket; | 18 class StreamSocket; |
19 } | 19 } |
20 | 20 |
21 class AndroidDeviceManager : public base::NonThreadSafe { | 21 class AndroidDeviceManager : public base::NonThreadSafe { |
22 public: | 22 public: |
23 typedef base::Callback<void(int, const std::string&)> CommandCallback; | 23 typedef base::Callback<void(int, const std::string&)> CommandCallback; |
24 typedef base::Callback<void(int result, scoped_ptr<net::StreamSocket>)> | 24 typedef base::Callback<void(int result, scoped_ptr<net::StreamSocket>)> |
25 SocketCallback; | 25 SocketCallback; |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 typedef std::map<std::string, base::WeakPtr<Device> > DeviceWeakMap; | 221 typedef std::map<std::string, base::WeakPtr<Device> > DeviceWeakMap; |
222 | 222 |
223 scoped_refptr<HandlerThread> handler_thread_; | 223 scoped_refptr<HandlerThread> handler_thread_; |
224 DeviceProviders providers_; | 224 DeviceProviders providers_; |
225 DeviceWeakMap devices_; | 225 DeviceWeakMap devices_; |
226 | 226 |
227 base::WeakPtrFactory<AndroidDeviceManager> weak_factory_; | 227 base::WeakPtrFactory<AndroidDeviceManager> weak_factory_; |
228 }; | 228 }; |
229 | 229 |
230 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ | 230 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ANDROID_DEVICE_MANAGER_H_ |
OLD | NEW |