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

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

Issue 298993003: Show ServiceWorkers in chrome://inspect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 6 years, 7 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
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 02f195a74e4ce3b9ebb744593420ae656e31a6a6..07a1fb78b1622308f4ff498dc12ec43a7a2e8ef4 100644
--- a/chrome/browser/ui/webui/inspect_ui.h
+++ b/chrome/browser/ui/webui/inspect_ui.h
@@ -46,6 +46,17 @@ class InspectUI : public content::WebUIController,
static void InspectDevices(Browser* browser);
+ // WebUIController implementation.
+ virtual bool OverrideHandleWebUIMessage(const GURL& source_url,
+ const std::string& message,
+ const base::ListValue& args) OVERRIDE;
+
+ // We forward these to |serviceworker_webui_|.
+ virtual void RenderViewCreated(
+ content::RenderViewHost* render_view_host) OVERRIDE;
+ virtual void RenderViewReused(
+ content::RenderViewHost* render_view_host) OVERRIDE;
+
private:
// content::NotificationObserver overrides.
virtual void Observe(int type,
@@ -89,6 +100,8 @@ class InspectUI : public content::WebUIController,
scoped_ptr<PortForwardingStatusSerializer> port_status_serializer_;
+ scoped_ptr<content::WebUI> serviceworker_webui_;
+
DISALLOW_COPY_AND_ASSIGN(InspectUI);
};
« no previous file with comments | « chrome/browser/resources/inspect/inspect.js ('k') | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698