Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4363)

Unified Diff: chrome/browser/ui/webui/inspect_ui.h

Issue 12559008: DevTools: add backend for discovering connected ADB devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Same with Fetch for fetching discovery pages. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/inspect_ui.h
diff --git a/chrome/browser/ui/webui/inspect_ui.h b/chrome/browser/ui/webui/inspect_ui.h
index 4f25433628dab0558bb46cad3bb7850376b6915a..e5173cc4ce489f4f11249de6210828f1ac72176e 100644
--- a/chrome/browser/ui/webui/inspect_ui.h
+++ b/chrome/browser/ui/webui/inspect_ui.h
@@ -5,10 +5,14 @@
#ifndef CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
#define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_
+#include <map>
yurys 2013/03/11 07:21:21 Remove this.
+
#include "base/memory/ref_counted.h"
+#include "chrome/browser/devtools/devtools_adb_bridge.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_ui_controller.h"
+#include "content/public/browser/web_ui_data_source.h"
class InspectUI : public content::WebUIController,
public content::NotificationObserver {
@@ -28,11 +32,32 @@ class InspectUI : public content::WebUIController,
void StopListeningNotifications();
+ content::WebUIDataSource* CreateInspectUIHTMLSource();
+
+ bool HandleRequestCallback(
+ const std::string& path,
+ const content::WebUIDataSource::GotDataCallback& callback);
+
+ bool HandleAdbQueryCallback(
+ const std::string& path,
+ const content::WebUIDataSource::GotDataCallback& callback);
+
+ bool HandleLocalXhrCallback(
+ const std::string& path,
+ const content::WebUIDataSource::GotDataCallback& callback);
+
+ void OnAdbResponse(
+ const content::WebUIDataSource::GotDataCallback& callback,
+ const std::string& error,
+ const std::string& data);
+
scoped_refptr<WorkerCreationDestructionListener> observer_;
// A scoped container for notification registries.
content::NotificationRegistrar registrar_;
+ scoped_refptr<DevToolsAdbBridge> adb_bridge_;
+
DISALLOW_COPY_AND_ASSIGN(InspectUI);
};

Powered by Google App Engine
This is Rietveld 408576698