blob: 7720ec6ffa1cd47bce0f819124c0fc513330f072 [file] [log] [blame]
// Copyright 2012 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_CONFLICTS_CONFLICTS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_CONFLICTS_CONFLICTS_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"
#include "ui/base/resource/resource_scale_factor.h"
namespace base {
class RefCountedMemory;
}
class ConflictsUI;
class ConflictsUIConfig : public content::DefaultWebUIConfig<ConflictsUI> {
public:
ConflictsUIConfig()
: DefaultWebUIConfig(content::kChromeUIScheme,
chrome::kChromeUIConflictsHost) {}
};
// The Web UI handler for about:conflicts.
class ConflictsUI : public content::WebUIController {
public:
explicit ConflictsUI(content::WebUI* web_ui);
ConflictsUI(const ConflictsUI&) = delete;
ConflictsUI& operator=(const ConflictsUI&) = delete;
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ResourceScaleFactor scale_factor);
};
#endif // CHROME_BROWSER_UI_WEBUI_CONFLICTS_CONFLICTS_UI_H_