Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / webui / flags_ui.h
blob1afd5efff46739bd7a6b3e65b76d263e32718381
1 // Copyright (c) 2012 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_FLAGS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/base/layout.h"
12 #if defined(OS_CHROMEOS)
13 #include "chrome/browser/chromeos/settings/device_settings_service.h"
14 #endif
16 class PrefRegistrySimple;
17 class Profile;
19 namespace base {
20 class RefCountedMemory;
23 namespace user_prefs {
24 class PrefRegistrySyncable;
27 class FlagsUI : public content::WebUIController {
28 public:
29 explicit FlagsUI(content::WebUI* web_ui);
30 ~FlagsUI() override;
32 static base::RefCountedMemory* GetFaviconResourceBytes(
33 ui::ScaleFactor scale_factor);
34 static void RegisterPrefs(PrefRegistrySimple* registry);
35 #if defined(OS_CHROMEOS)
36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
37 #endif
39 private:
40 base::WeakPtrFactory<FlagsUI> weak_factory_;
42 DISALLOW_COPY_AND_ASSIGN(FlagsUI);
45 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_