Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
|
csilv
2012/03/20 18:22:02
nit: 2012
pfeldman
2012/03/20 19:18:47
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "content/public/browser/notification_observer.h" | |
| 11 #include "content/public/browser/notification_registrar.h" | |
| 12 #include "content/public/browser/web_ui_controller.h" | |
| 13 | |
| 14 class InspectUI : public content::WebUIController, | |
| 15 public content::NotificationObserver { | |
| 16 public: | |
| 17 explicit InspectUI(content::WebUI* web_ui); | |
| 18 virtual ~InspectUI(); | |
| 19 | |
| 20 void RefreshUI(); | |
| 21 | |
| 22 private: | |
| 23 class WorkerCreationDestructionListener; | |
| 24 | |
| 25 // content::NotificationObserver overrides. | |
| 26 virtual void Observe(int type, | |
| 27 const content::NotificationSource& source, | |
| 28 const content::NotificationDetails& details) OVERRIDE; | |
| 29 | |
| 30 scoped_refptr<WorkerCreationDestructionListener> observer_; | |
| 31 | |
| 32 // A scoped container for notification registries. | |
| 33 content::NotificationRegistrar registrar_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(InspectUI); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_WEBUI_INSPECT_UI_H_ | |
| OLD | NEW |