blob: 82151215b0d8fe8ea0deca911413bf4145d6baf9 [file] [log] [blame]
// Copyright 2017 The Chromium Authors
// 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_MEMORY_INTERNALS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_UI_H_
#include "chrome/common/webui_url_constants.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/webui_config.h"
#include "content/public/common/url_constants.h"
class MemoryInternalsUI;
// WebUIConfig for chrome://memory-internals
class MemoryInternalsUIConfig
: public content::DefaultWebUIConfig<MemoryInternalsUI> {
public:
MemoryInternalsUIConfig()
: DefaultWebUIConfig(content::kChromeUIScheme,
chrome::kChromeUIMemoryInternalsHost) {}
};
class MemoryInternalsUI : public content::WebUIController {
public:
explicit MemoryInternalsUI(content::WebUI* web_ui);
MemoryInternalsUI(const MemoryInternalsUI&) = delete;
MemoryInternalsUI& operator=(const MemoryInternalsUI&) = delete;
~MemoryInternalsUI() override;
};
#endif // CHROME_BROWSER_UI_WEBUI_MEMORY_INTERNALS_UI_H_