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); |
}; |