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

Side by Side Diff: chrome/browser/ui/webui/options/core_options_handler.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_OPTIONS_CORE_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/prefs/pref_change_registrar.h" 12 #include "base/prefs/pref_change_registrar.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "chrome/browser/plugins/plugin_status_pref_setter.h" 15 #include "chrome/browser/plugins/plugin_status_pref_setter.h"
16 #include "chrome/browser/ui/webui/options/options_ui.h" 16 #include "chrome/browser/ui/webui/options/options_ui.h"
17 17
18 namespace options { 18 namespace options {
19 19
20 // Core options UI handler. 20 // Core options UI handler.
21 // Handles resource and JS calls common to all options sub-pages. 21 // Handles resource and JS calls common to all options sub-pages.
22 class CoreOptionsHandler : public OptionsPageUIHandler { 22 class CoreOptionsHandler : public OptionsPageUIHandler {
23 public: 23 public:
24 CoreOptionsHandler(); 24 CoreOptionsHandler();
25 virtual ~CoreOptionsHandler(); 25 ~CoreOptionsHandler() override;
26 26
27 // OptionsPageUIHandler implementation. 27 // OptionsPageUIHandler implementation.
28 virtual void GetLocalizedValues( 28 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
29 base::DictionaryValue* localized_strings) override; 29 void InitializeHandler() override;
30 virtual void InitializeHandler() override; 30 void InitializePage() override;
31 virtual void InitializePage() override; 31 void Uninitialize() override;
32 virtual void Uninitialize() override;
33 32
34 // WebUIMessageHandler implementation. 33 // WebUIMessageHandler implementation.
35 virtual void RegisterMessages() override; 34 void RegisterMessages() override;
36 35
37 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) { 36 void set_handlers_host(OptionsPageUIHandlerHost* handlers_host) {
38 handlers_host_ = handlers_host; 37 handlers_host_ = handlers_host;
39 } 38 }
40 39
41 // Adds localized strings to |localized_strings|. 40 // Adds localized strings to |localized_strings|.
42 static void GetStaticLocalizedValues( 41 static void GetStaticLocalizedValues(
43 base::DictionaryValue* localized_strings); 42 base::DictionaryValue* localized_strings);
44 43
45 protected: 44 protected:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 typedef std::map<std::string, base::Callback<bool(const base::Value*)> > 180 typedef std::map<std::string, base::Callback<bool(const base::Value*)> >
182 PrefChangeFilterMap; 181 PrefChangeFilterMap;
183 PrefChangeFilterMap pref_change_filters_; 182 PrefChangeFilterMap pref_change_filters_;
184 183
185 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler); 184 DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
186 }; 185 };
187 186
188 } // namespace options 187 } // namespace options
189 188
190 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_ 189 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CORE_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698