| 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_ADB_ADB_DEVICE_INFO_QUERY_H_ | 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_DEVICE_INFO_QUERY_H_ |
| 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_DEVICE_INFO_QUERY_H_ | 6 #define CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_DEVICE_INFO_QUERY_H_ |
| 7 | 7 |
| 8 #include "base/threading/non_thread_safe.h" | 8 #include "base/threading/non_thread_safe.h" |
| 9 #include "chrome/browser/devtools/device/android_device_manager.h" | 9 #include "chrome/browser/devtools/device/android_device_manager.h" |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 virtual ~AdbDeviceInfoQuery(); | 32 virtual ~AdbDeviceInfoQuery(); |
| 33 | 33 |
| 34 void ReceivedModel(int result, const std::string& response); | 34 void ReceivedModel(int result, const std::string& response); |
| 35 | 35 |
| 36 void ReceivedDumpsys(int result, const std::string& response); | 36 void ReceivedDumpsys(int result, const std::string& response); |
| 37 | 37 |
| 38 void ParseDumpsysResponse(const std::string& response); | 38 void ParseDumpsysResponse(const std::string& response); |
| 39 | 39 |
| 40 void ParseScreenSize(const std::string& str); | 40 void ParseScreenSize(const std::string& str); |
| 41 | 41 |
| 42 void ReceivedPackages(int result, const std::string& response); | 42 void ReceivedProcesses(int result, |
| 43 | |
| 44 void ReceivedProcesses(const std::string& packages_response, | |
| 45 int result, | |
| 46 const std::string& processes_response); | 43 const std::string& processes_response); |
| 47 | 44 |
| 48 void ReceivedSockets(const std::string& packages_response, | 45 void ReceivedSockets(const std::string& processes_response, |
| 49 const std::string& processes_response, | |
| 50 int result, | 46 int result, |
| 51 const std::string& sockets_response); | 47 const std::string& sockets_response); |
| 52 | 48 |
| 53 void ParseBrowserInfo(const std::string& packages_response, | 49 void ParseBrowserInfo(const std::string& processes_response, |
| 54 const std::string& processes_response, | |
| 55 const std::string& sockets_response); | 50 const std::string& sockets_response); |
| 56 | 51 |
| 57 void Respond(); | 52 void Respond(); |
| 58 | 53 |
| 59 RunCommandCallback command_callback_; | 54 RunCommandCallback command_callback_; |
| 60 DeviceInfoCallback callback_; | 55 DeviceInfoCallback callback_; |
| 61 AndroidDeviceManager::DeviceInfo device_info_; | 56 AndroidDeviceManager::DeviceInfo device_info_; |
| 62 | 57 |
| 63 DISALLOW_COPY_AND_ASSIGN(AdbDeviceInfoQuery); | 58 DISALLOW_COPY_AND_ASSIGN(AdbDeviceInfoQuery); |
| 64 }; | 59 }; |
| 65 | 60 |
| 66 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_DEVICE_INFO_QUERY_H_ | 61 #endif // CHROME_BROWSER_DEVTOOLS_DEVICE_ADB_ADB_DEVICE_INFO_QUERY_H_ |
| OLD | NEW |