Index: chrome/browser/resources/inspect/inspect.js |
diff --git a/chrome/browser/resources/inspect/inspect.js b/chrome/browser/resources/inspect/inspect.js |
index 3f05a2dc11e1fdcdcb965a200e1ec3242c34ce3d..7e439e0fa54b3fe589e74667bacf770408fe964a 100644 |
--- a/chrome/browser/resources/inspect/inspect.js |
+++ b/chrome/browser/resources/inspect/inspect.js |
@@ -11,6 +11,24 @@ function requestData() { |
return []; |
} |
+function adbQuery(query) { |
+ var xhr = new XMLHttpRequest(); |
+ xhr.open('GET', 'adb-query/' + query, false); |
+ xhr.send(null); |
+ if (xhr.status === 200) |
+ return JSON.parse(xhr.responseText); |
+ return [String(xhr.status), '']; |
+} |
+ |
+function xhr(url) { |
+ var xhr = new XMLHttpRequest(); |
+ xhr.open('GET', 'local-xhr/' + url, false); |
+ xhr.send(null); |
+ if (xhr.status === 200) |
+ return JSON.parse(xhr.responseText); |
+ return [String(xhr.status), '']; |
+} |
+ |
function inspect(data) { |
chrome.send('inspect', |
[String(data.processId), String(data.routeId)]); |