blob: b16cc35454c0cfda440fd6577ef3ca12e36b82b5 [file] [log] [blame]
// Copyright (c) 2011 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_EXTENSIONS_EXTENSIONS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSIONS_UI_H_
#include "base/macros.h"
#include "components/prefs/pref_member.h"
#include "content/public/browser/web_ui_controller.h"
#include "ui/base/layout.h"
namespace base {
class RefCountedMemory;
}
namespace user_prefs {
class PrefRegistrySyncable;
}
namespace extensions {
class ExtensionsUI : public content::WebUIController {
public:
explicit ExtensionsUI(content::WebUI* web_ui);
~ExtensionsUI() override;
static base::RefCountedMemory* GetFaviconResourceBytes(
ui::ScaleFactor scale_factor);
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
private:
// Called when developer mode is toggled.
void OnDevModeChanged();
// Tracks whether developer mode is enabled.
BooleanPrefMember in_dev_mode_;
DISALLOW_COPY_AND_ASSIGN(ExtensionsUI);
};
} // namespace extensions
#endif // CHROME_BROWSER_UI_WEBUI_EXTENSIONS_EXTENSIONS_UI_H_