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

Side by Side Diff: chrome/browser/ui/webui/options/clear_browser_data_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_CLEAR_BROWSER_DATA_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
7 7
8 #include "base/prefs/pref_member.h" 8 #include "base/prefs/pref_member.h"
9 #include "chrome/browser/browsing_data/browsing_data_remover.h" 9 #include "chrome/browser/browsing_data/browsing_data_remover.h"
10 #include "chrome/browser/ui/webui/options/options_ui.h" 10 #include "chrome/browser/ui/webui/options/options_ui.h"
11 11
12 namespace options { 12 namespace options {
13 13
14 // Clear browser data handler page UI handler. 14 // Clear browser data handler page UI handler.
15 class ClearBrowserDataHandler : public OptionsPageUIHandler, 15 class ClearBrowserDataHandler : public OptionsPageUIHandler,
16 public BrowsingDataRemover::Observer { 16 public BrowsingDataRemover::Observer {
17 public: 17 public:
18 ClearBrowserDataHandler(); 18 ClearBrowserDataHandler();
19 virtual ~ClearBrowserDataHandler(); 19 ~ClearBrowserDataHandler() override;
20 20
21 // OptionsPageUIHandler implementation. 21 // OptionsPageUIHandler implementation.
22 virtual void GetLocalizedValues( 22 void GetLocalizedValues(base::DictionaryValue* localized_strings) override;
23 base::DictionaryValue* localized_strings) override; 23 void InitializeHandler() override;
24 virtual void InitializeHandler() override; 24 void InitializePage() override;
25 virtual void InitializePage() override;
26 25
27 // WebUIMessageHandler implementation. 26 // WebUIMessageHandler implementation.
28 virtual void RegisterMessages() override; 27 void RegisterMessages() override;
29 28
30 void UpdateInfoBannerVisibility(); 29 void UpdateInfoBannerVisibility();
31 30
32 private: 31 private:
33 // Javascript callback to start clearing data. 32 // Javascript callback to start clearing data.
34 void HandleClearBrowserData(const base::ListValue* value); 33 void HandleClearBrowserData(const base::ListValue* value);
35 34
36 // BrowsingDataRemover::Observer implementation. 35 // BrowsingDataRemover::Observer implementation.
37 // Closes the dialog once all requested data has been removed. 36 // Closes the dialog once all requested data has been removed.
38 virtual void OnBrowsingDataRemoverDone() override; 37 void OnBrowsingDataRemoverDone() override;
39 38
40 // Updates UI when the pref to allow clearing history changes. 39 // Updates UI when the pref to allow clearing history changes.
41 virtual void OnBrowsingHistoryPrefChanged(); 40 virtual void OnBrowsingHistoryPrefChanged();
42 41
43 // If non-null it means removal is in progress. BrowsingDataRemover takes care 42 // If non-null it means removal is in progress. BrowsingDataRemover takes care
44 // of deleting itself when done. 43 // of deleting itself when done.
45 BrowsingDataRemover* remover_; 44 BrowsingDataRemover* remover_;
46 45
47 // Keeps track of whether clearing LSO data is supported. 46 // Keeps track of whether clearing LSO data is supported.
48 BooleanPrefMember clear_plugin_lso_data_enabled_; 47 BooleanPrefMember clear_plugin_lso_data_enabled_;
49 48
50 // Keeps track of whether Pepper Flash is enabled and thus Flapper-specific 49 // Keeps track of whether Pepper Flash is enabled and thus Flapper-specific
51 // settings and removal options (e.g. Content Licenses) are available. 50 // settings and removal options (e.g. Content Licenses) are available.
52 BooleanPrefMember pepper_flash_settings_enabled_; 51 BooleanPrefMember pepper_flash_settings_enabled_;
53 52
54 // Keeps track of whether deleting browsing history and downloads is allowed. 53 // Keeps track of whether deleting browsing history and downloads is allowed.
55 BooleanPrefMember allow_deleting_browser_history_; 54 BooleanPrefMember allow_deleting_browser_history_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler); 56 DISALLOW_COPY_AND_ASSIGN(ClearBrowserDataHandler);
58 }; 57 };
59 58
60 } // namespace options 59 } // namespace options
61 60
62 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_ 61 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CLEAR_BROWSER_DATA_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698