Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/ui/webui/flags_ui.h

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
11 11
12 #if defined(OS_CHROMEOS) 12 #if defined(OS_CHROMEOS)
13 #include "chrome/browser/chromeos/settings/device_settings_service.h" 13 #include "chrome/browser/chromeos/settings/device_settings_service.h"
14 #endif 14 #endif
15 15
16 class PrefRegistrySimple; 16 class PrefRegistrySimple;
17 class Profile; 17 class Profile;
18 18
19 namespace base { 19 namespace base {
20 class RefCountedMemory; 20 class RefCountedMemory;
21 } 21 }
22 22
23 namespace user_prefs { 23 namespace user_prefs {
24 class PrefRegistrySyncable; 24 class PrefRegistrySyncable;
25 } 25 }
26 26
27 class FlagsUI : public content::WebUIController { 27 class FlagsUI : public content::WebUIController {
28 public: 28 public:
29 explicit FlagsUI(content::WebUI* web_ui); 29 explicit FlagsUI(content::WebUI* web_ui);
30 virtual ~FlagsUI(); 30 ~FlagsUI() override;
31 31
32 static base::RefCountedMemory* GetFaviconResourceBytes( 32 static base::RefCountedMemory* GetFaviconResourceBytes(
33 ui::ScaleFactor scale_factor); 33 ui::ScaleFactor scale_factor);
34 static void RegisterPrefs(PrefRegistrySimple* registry); 34 static void RegisterPrefs(PrefRegistrySimple* registry);
35 #if defined(OS_CHROMEOS) 35 #if defined(OS_CHROMEOS)
36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
37 #endif 37 #endif
38 38
39 private: 39 private:
40 base::WeakPtrFactory<FlagsUI> weak_factory_; 40 base::WeakPtrFactory<FlagsUI> weak_factory_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(FlagsUI); 42 DISALLOW_COPY_AND_ASSIGN(FlagsUI);
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_ 45 #endif // CHROME_BROWSER_UI_WEBUI_FLAGS_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698