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