| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| 11 #include "content/public/browser/web_ui_controller.h" | 11 #include "content/public/browser/web_ui_controller.h" |
| 12 #include "ui/base/layout.h" | 12 #include "ui/base/layout.h" |
| 13 | 13 |
| 14 #if defined(OS_CHROMEOS) | 14 #if defined(OS_CHROMEOS) |
| 15 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 15 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 class PrefRegistrySimple; | |
| 19 class Profile; | |
| 20 | |
| 21 namespace base { | 18 namespace base { |
| 22 class RefCountedMemory; | 19 class RefCountedMemory; |
| 23 } | 20 } |
| 24 | 21 |
| 25 namespace user_prefs { | |
| 26 class PrefRegistrySyncable; | |
| 27 } | |
| 28 | |
| 29 class FlagsUI : public content::WebUIController { | 22 class FlagsUI : public content::WebUIController { |
| 30 public: | 23 public: |
| 31 explicit FlagsUI(content::WebUI* web_ui); | 24 explicit FlagsUI(content::WebUI* web_ui); |
| 32 ~FlagsUI() override; | 25 ~FlagsUI() override; |
| 33 | 26 |
| 34 static base::RefCountedMemory* GetFaviconResourceBytes( | 27 static base::RefCountedMemory* GetFaviconResourceBytes( |
| 35 ui::ScaleFactor scale_factor); | 28 ui::ScaleFactor scale_factor); |
| 36 | 29 |
| 37 private: | 30 private: |
| 38 base::WeakPtrFactory<FlagsUI> weak_factory_; | 31 base::WeakPtrFactory<FlagsUI> weak_factory_; |
| 39 | 32 |
| 40 DISALLOW_COPY_AND_ASSIGN(FlagsUI); | 33 DISALLOW_COPY_AND_ASSIGN(FlagsUI); |
| 41 }; | 34 }; |
| 42 | 35 |
| 43 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ | 36 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ |
| OLD | NEW |