Add ability to gather metrics to BubbleManager.
[chromium-blink-merge.git] / chrome / browser / ui / webui / domain_reliability_internals_ui.h
blob401f01b6b8c3ad5649aed8ae6b874cad8e40192f
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/browser/web_ui_controller.h"
11 namespace base {
12 class ListValue;
13 class Value;
14 } // namespace base
16 // The WebUI for chrome://domain-reliability-internals
17 class DomainReliabilityInternalsUI : public content::WebUIController {
18 public:
19 explicit DomainReliabilityInternalsUI(content::WebUI* web_ui);
20 ~DomainReliabilityInternalsUI() override;
22 private:
23 void UpdateData(const base::ListValue* args) const;
24 void OnDataUpdated(scoped_ptr<base::Value> data) const;
26 DISALLOW_COPY_AND_ASSIGN(DomainReliabilityInternalsUI);
29 #endif // CHROME_BROWSER_UI_WEBUI_DOMAIN_RELIABILITY_INTERNALS_UI_H_